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

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.

Victor Martinez

April 06, 2019
Tweet

More Decks by Victor Martinez

Other Decks in Technology

Transcript

  1. 1

  2. 2 2

  3. 3

  4. 4

  5. 5

  6. 6

  7. 7

  8. 8

  9. 9

  10. 10

  11. 12

  12. 18

  13. 19

  14. 20

  15. 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
  16. 24

  17. 25

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

    your document? Hashing x Math Function
  19. 28

  20. 29

  21. 30

  22. 31

  23. 32

  24. 33

  25. 34

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

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

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

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

  30. 39

  31. 40

  32. 41

  33. 43

  34. 45

  35. 46

  36. 47

  37. 48

  38. 49

  39. 50

  40. 51

  41. 53

  42. 54

  43. 55

  44. 57

  45. 59

  46. 60

  47. 61