Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elasticsearchの紹介と特徴 CROSS 2015

657aeeff3fc467567dacebf8a1ea0b23?s=47 Jun Ohtani
January 30, 2015

Elasticsearchの紹介と特徴 CROSS 2015

CROSS 2015の全文検索エンジン群雄割拠〜あなたが使うべきはどれだ!〜で使用したスライドです。
http://2015.cross-party.com/program/c4

657aeeff3fc467567dacebf8a1ea0b23?s=128

Jun Ohtani

January 30, 2015
Tweet

Transcript

  1. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Jun Ohtani @johtani 2015/01/29 Elasticsearchͷ঺հͱಛ௃
  2. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Elasticsearchͱ͸ʁ
  3. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Elasticsearch in 10 seconds • εΩʔϚϑϦʔɺ෼ࢄυΩϡϝϯτετΞɺREST & JSON • Φʔϓϯιʔε: Apache License 2.0 • ઃఆͳ͠Ͱ؆୯ʹࢼ͢͜ͱ͕Մೳ • JavaͰ࣮૷ɻ֦ு΋༰қ
  4. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Powerful Search at Scale
  5. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Πϯετʔϧ͔Βݕࡧ·Ͱ
  6. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited μ΢ϯϩʔυͱىಈ $ wget https://download.elasticsearch.org/... $ tar -xf elasticsearch-1.4.0.tar.gz $ ./elasticsearch-1.4.0/bin/elasticsearch ... [2014-11-12 16:07:13,346][INFO ][node] [Araña] started ... Also puppet modules and RPM/DEB
  7. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ىಈͷ֬ೝ » curl localhost:9200 { "status" : 200, "name" : "Araña" "cluster_name" : "elasticsearch", "version" : { "number" : "1.4.0", "build_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066", "build_timestamp" : "2014-11-05T14:26:12Z", "build_snapshot" : false, "lucene_version" : "4.10.2" }, "tagline" : "You Know, for Search" }
  8. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited » curl -XPUT localhost:9200/books/book/1 -d ' { "title" : "Elasticsearch - The definitive guide", "authors" : "Clinton Gormley", "started" : "2013-02-04", "pages" : 230 }' σʔλొ࿥
  9. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited » curl -XPUT localhost:9200/books/book/1 -d ' { "title" : "Elasticsearch - The definitive guide", "authors" : [ "Clinton Gormley", "Zachary Tong" ], "started" : "2013-02-04", "pages" : 230 }' σʔλߋ৽
  10. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited σʔλ࡟আ » curl -X DELETE localhost:9200/books/book/1 σʔλͷऔಘ » curl —X GET localhost:9200/books/book/1 » curl —X GET localhost:9200/books/book/1/_source
  11. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ݕࡧ » curl -XGET localhost:9200/books/_search?q=elasticsearch { "took" : 2, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 1, "max_score" : 0.076713204, "hits" : [ { "_index" : “books", "_type" : “book", "_id" : "1", "_score" : 0.076713204, "_source" : { "title" : "Elasticsearch - The definitive guide", "authors" : [ "Clinton Gormley", "Zachary Tong" ], "started" : “2013-02-04", "pages" : 230 } } ] } }
  12. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited » curl -XGET ‘localhost:9200/books/book/_search' -d '{ "query": { "filtered" : { "query" : { "match": { "text" : { "query" : “To Be Or Not To Be", "cutoff_frequency" : 0.01 } } }, "filter" : { "range": { "price": { "gte": 20.0 "lte": 50.0 ... } }' ݕࡧ - Query DSL
  13. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ৄ͘͠஌Γ͍ͨํ͸ • Elasticsearch - The Definitive guide http://www.elasticsearch.com/guide/en/elasticsearch/guide/ current/index.html
  14. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  15. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  16. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ػೳ͕๛෋ • Aggregation - ݕࡧ݁Ռͷूܭ • Geo - Ң౓ܦ౓ɺGeoHashͰͷݕࡧ • Percolator - ΫΤϦΛอଘͯ͠ݕࡧ • Snapshot/Restore - ΠϯσοΫεͷอଘɺϦετΞ • Ecosystem - Pluginɺ֤ݴޠ޲͚ϥΠϒϥϦɺ Hadoop integrationͳͲͳͲ
  17. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  18. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ίϛϡχςΟ͕׆ൃ - MLͷ౤ߘ਺
  19. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited MeetupͳͲ • Meetupϝϯόʔɿ17,000௒ ೔ຊɿelasticsearchษڧձɿొ࿥ऀ਺ 1,000໊௒ • 74౎ࢢ • 27Χࠃ http://www.elasticsearch.org/community/
  20. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  21. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ։ൃ΋׆ൃ • GitHubͷIssuesͱ͔Closesͱ͔ͷ਺ʢPulseʣ • ϦϦʔεͷස౓ɺػೳͷ௥Ճ • ֤छݴޠͷϥΠϒϥϦ • ๛෋ͳϓϥάΠϯ
  22. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited GitHubͷPulse
  23. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ϦϦʔεͷස౓ • 2014೥1݄ɿ1.0ϦϦʔε • AggregationɺSnapshot/RestoreɺCircuit Breakerͷಋೖ • 2014೥3݄ɿ1.1ϦϦʔε • Search templateɺAggregationͷ֦ॆ • 2014೥5݄ɿ1.2ϦϦʔε • 2014೥7݄ɿ1.3ϦϦʔε • AggregationͷڧԽɺσΟεΫϕʔεͷγϟʔυׂΓ౰ͯ • 2014೥11݄ɿ1.4ϦϦʔε • ResiliencyɺηΩϡϦςΟରԠɺUpgrade API
  24. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ֤छݴޠͷϥΠϒϥϦ • Java • JavaScript • .NET • Groovy • PHP • Perl • Python • Ruby ίϛϡχςΟαϙʔτΫϥΠΞϯτ͸ͪ͜Β
 http://www.elasticsearch.org/guide/en/elasticsearch/client/ community/current/clients.html
  25. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  26. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ֤छΫϥ΢υج൫Ͱར༻Մೳ • ֤छΫϥ΢υͰར༻͢ΔͨΊͷϓϥάΠϯ • AWS https://github.com/elasticsearch/elasticsearch-cloud-aws/ • GCE https://github.com/elasticsearch/elasticsearch-cloud-gce • Azure https://github.com/elasticsearch/elasticsearch-cloud-azure
  27. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited click-to-deploy • Google Cloud PlatformͰ͸click-to-deploy΋Մೳ http://www.elasticsearch.org/blog/google-cloud-platform- delivers-real-time-search-with-click-to-deploy-elasticsearch/ • Azure searchͷόοΫΤϯυ΋elasticsearch
  28. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ͦͷଞͷಛ௃ • ػೳ͕๛෋ • ίϛϡχςΟͳͲ͕׆ൃ • ։ൃ΋׆ൃ • ֤छΫϥ΢υج൫Ͱͷӡ༻͕༰қ • શจݕࡧҎ֎Ͱͷ׆༻
  29. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ݕࡧҎ֎Ͱ΋ • ElasticsearchʴLogstash/FluentdʴKibana ϩάσʔλͷՄࢹԽ
 Logstashɿϩάͷऩू
 Elasticsearchɿϩάͷอଘ Kibana 3 or 4ɿϩάͷՄࢹԽ
  30. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Logstash in 10 seconds • ϩάɾσʔλͷऩूɾ؅ཧ • ऩूɺύʔεɾՃ޻ɺૹग़ • Apache License 2.0 • Ruby app (JRuby)
  31. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission is strictly prohibited Kibana3
  32. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited Kibana 4 (Beta3)
  33. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited ࢀߟจݙ • Elasticsearch - The Definitive guide http://www.elasticsearch.com/guide/en/elasticsearch/guide/ current/index.html • ॻ੶ʢ೔ຊޠʣ ElasticSearchServer೔ຊޠ൛
 αʔό/ΠϯϑϥΤϯδχΞ
 ɹཆ੒ಡຊɹϩάऩू
  34. Copyright Elasticsearch 2014. Copying, publishing and/or distributing without written permission

    is strictly prohibited elasticsearchษڧձ • elasticsearchษڧձ http://elasticsearch.doorkeeper.jp 2ϲ݄ʹ1ճఔ౓ͷස౓Ͱ։࠵ • 2/13(ۚ)ʹୈ8ճΛ։࠵ ৔ॴɿϦΫϧʔτςΫϊϩδʔζ
 ɹɹɹάϥϯτ΢Ωϣ΢α΢ελϫʔ 41F http://elasticsearch.doorkeeper.jp/events/19923