ClassiでのElasticsearchの利用について

F2fd90f28907a60a863c5e9375392a89?s=47 Nakamura shinichirou
February 20, 2019
350

 ClassiでのElasticsearchの利用について

教育プラットフォーム ClassiでどのようにElasticsearchを利用しているかの紹介です

F2fd90f28907a60a863c5e9375392a89?s=128

Nakamura shinichirou

February 20, 2019
Tweet

Transcript

  1. 1.

    Copyright © 2018 Classi Corp. All Rights Reserved. Classi Amazon

    Elasticsearch Service Copyright © 2018 Classi Corp. All Rights Reserved.  
  2. 2.

    Copyright © 2018 Classi Corp. All Rights Reserved. • Classi

    Elasticsearch   • -( #! ".,. a. %*&+ b. $  •  1 )'
  3. 3.

    Copyright © 2018 Classi Corp. All Rights Reserved. • 8OY6b

    • twitter: s_nakamura, github: nakaearth • QI:Z)&-%Classi@B • ]U • sIer: 8H • BtoCBtoB 5*$ :Z 10Ha • VD • Classi Rails4#'  =  • Classi  • R[T^0+25$(ElasticsearchA) • WebtestrailsA • ,'5"/4T^(P>15+)MC • R[?W Elasticsearch; ) • `FT^XcSKEN(.5!*0B7) 5 (< • Classi0+25$+3#& 5(LJ 2 _G\9
  4. 4.

    Copyright © 2018 Classi Corp. All Rights Reserved. • Classi

         ! • 4, 40%1 )% • &'4732*.)% • $--+#0/ (ICT! 3 ClassiElasticsearch " 
  5. 5.

    Copyright © 2018 Classi Corp. All Rights Reserved. • ?8Amazon

    Elasticsearch Service2 1->C • $&7E+,&A<B>C(+$+#("F • 3@/@9)" ,6 >C(;4*,') • 0=%,!<B • .:5/   D 4 ClassiElasticsearch2 
  6. 7.

    Copyright © 2018 Classi Corp. All Rights Reserved. #1)1(.'"% •

    Mysqlmroonga%+02$ 1$16 5 ,-!2/1%D7 Elasticsearch:I F9P • 4G:I   *2&KRmroonga S  • U?KR*2& • *2&>C(NM VH@ )JO=Q1= N • ElasticsearchDocumentE8DBjsonBA*2&LT • jsonBA*2&JOU?KR ;3< • AWSAmazon Elasticsearch Service → Elasticsearch:I   6 ClassiElasticsearch6
  7. 8.

    Copyright © 2018 Classi Corp. All Rights Reserved. (#("%! •

    -A F= ))) • ' &( 10C+*7 1~2CBG  )) • # $F>E K0  • ,@:;24/L<M 36 F =D58  •  ?H .1?I 9 JN))) 7 ClassiElasticsearch.
  8. 9.

    Copyright © 2018 Classi Corp. All Rights Reserved. (#("&! •

    >8 4 =A $*'(!% • 56:-Elasticsearch+, ))))) @20)))(9;3.6<  / ?  B 8 >8 7-1A=A
  9. 10.

    Copyright © 2018 Classi Corp. All Rights Reserved. +&+%)$" •

    Elasticsearch(,!*+- BOindex2A  ? E;',#import • ',#import/.N BO',#4  • 6JM  C@KS • >DFH6G1R0=3~5G<I398  :FH 9 QL F59TPT 7(,!*+ E;index ver5index2A APP
  10. 11.
  11. 12.

    Copyright © 2018 Classi Corp. All Rights Reserved. .$ 

    •  53 • *%(.1index"+ • (.1 &  • message comment1)'07! JSON 6 28(nested object9 • -,)   /45 11 Classi Elasticsearch# 
  12. 13.

    Copyright © 2018 Classi Corp. All Rights Reserved. 8*"$ •

    .85- index5,&% • index'3 :2#### • master node>index'3index769<) 1@  • =/master node?+ index540'; ! !$   12 ClassiElasticsearch(
  13. 14.

    Copyright © 2018 Classi Corp. All Rights Reserved. $ •

    index# $Index%!"  • master node3 node2 13 Classi Elasticsearch 
  14. 15.

    Copyright © 2018 Classi Corp. All Rights Reserved. #Index "

    #ID&% ' 60index  $ !  14 Classi Elasticsearch   index1 index2 index3 2 3 1 7 6 5
  15. 16.

    Copyright © 2018 Classi Corp. All Rights Reserved. • 1

    node?325%($", Elasticsearch 6; _id+messageid @(B?  ) • _id25IDmessageid"=0!   • >4Elasticsearch-modelgem7</ • 5-#'(&.9A: *8 15 ClassiElasticsearch")
  16. 17.

    Copyright © 2018 Classi Corp. All Rights Reserved. (% "

    • #6*& →"! !! • ',AWSAmazon Elasticsearch Serviceupdate- $ )+".. 16 Classi Elasticsearch$ 
  17. 18.

    Copyright © 2018 Classi Corp. All Rights Reserved. '& #

    • 5*%(+ • "!#$#")# "!#   ,#" ) 17 Classi Elasticsearch% 
  18. 19.

    Copyright © 2018 Classi Corp. All Rights Reserved. $ •

    +%"'* )    '*  • (#!&'*  18 Classi Elasticsearch 
  19. 20.

    Copyright © 2018 Classi Corp. All Rights Reserved. 8*#%! •

    5=(9?2=5='@ <)20  35=( (  • 1B16 " $& 7575+;  A:/C- • 4.,75>  19 ClassiElasticsearch( 
  20. 21.

    Copyright © 2018 Classi Corp. All Rights Reserved. 1 •

    Elasticsearch0DAkibana2  → ),"B;A 43G >9& -+(5@ =C • %/*.!&E68  → 2:?G  x-pack2→'.+/$.sql →F<#7 20 ClassiElasticsearch2 
  21. 22.

    Copyright © 2018 Classi Corp. All Rights Reserved. • -$

    Elasticsearch#&  •  "!   • Elasticsearch%,.-$*  0+ /  ' 21 )(