Fast results with Elasticsearch

Fast results with Elasticsearch

So, you have many documents and need fast querying? Elasticserch is a powerful search engine that helps you with that. During the talk I present a broad overview, some usage examples and how Onyo (the company I work for) uses it.

6dbafc7a4ba86959b02c97995bf7be70?s=128

Victor Martinez

April 06, 2019
Tweet

Transcript

  1. 1

  2. 2 2

  3. 3

  4. 4

  5. 5

  6. 6

  7. 7

  8. 8

  9. 9

  10. 10

  11. 11 Characteristics https://i.imgur.com/TXZJsnS.jpg

  12. 12

  13. 13 https://connect.ebsco.com/servlet/rtaImage?eid=ka01H0000009P6R&feoid=00N1H00000GxReU&refid=0EM1H000000RMKh

  14. 14 https://cdn.baymard.com/data-broker/graphic-7772-6d50e0f 76567f0de1394966f58e3b6f1.jpg http://mfikri.com/assets/images/files/Autocomplete%20Youtube.png

  15. 15 https://tereshenkov.files.wordpress.com/2017/08/2017-08-05-16_14_49-photos.png

  16. 16 https://www.elastic.co/blog/elasticsearch-as-a-time-series-data-store

  17. 17 Basic Concepts Photo by Ben White on Unsplash

  18. 18

  19. 19

  20. 20

  21. 21 https://www.elastic.co/guide/en/elasticsearch/g uide/current/inverted-index.html Term Doc 1 Doc 2 brown X

    X dog X X fox X X in X jump X X lazy X X over X X quick X X summer X the X X Analysis Tokenization + Normalization
  22. 22 - -

  23. 23 • Standard analyzer • Simple analyzer • Whitespace analyzer

    • Language analyzer
  24. 24

  25. 25

  26. 26 Tip How does ES know in which shard is

    your document? Hashing x Math Function
  27. 27 Getting Started https://thefourpercent.com/2014/01/07/the-hardest-part-getting-started/

  28. 28

  29. 29

  30. 30

  31. 31

  32. 32

  33. 33

  34. 34

  35. 35 Tip Red: the shard is not allocated in the

    cluster. Yellow: primary shard is allocated but replicas are not. Green: all shards allocated.
  36. 36

  37. 37 Tip If you don’t specify the id, the Elasticsearch

    server will assign one for the given document.
  38. 38

  39. 39

  40. 40

  41. 41

  42. 42 Tip Be careful with updates. Elasticsearch takes advance on

    write-once-read-many architectures.
  43. 43

  44. 44 https://wallhere.com/en/wallpaper/559465 Searching & Asking Questions

  45. 45

  46. 46

  47. 47

  48. 48

  49. 49

  50. 50

  51. 51

  52. 52 Aggregations

  53. 53

  54. 54

  55. 55

  56. 56 Important issues

  57. 57

  58. 58 How do we use Elasticsearch at ?

  59. 59

  60. 60

  61. 61

  62. 62 Online Companies Stats

  63. 63 63