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
Slide 22
Slide 22 text
22
-
-
Slide 23
Slide 23 text
23
● Standard analyzer
● Simple analyzer
● Whitespace analyzer
● Language analyzer
Slide 24
Slide 24 text
24
Slide 25
Slide 25 text
25
Slide 26
Slide 26 text
26
Tip
How does ES know in
which shard is your
document?
Hashing x Math Function
Slide 27
Slide 27 text
27
Getting Started
https://thefourpercent.com/2014/01/07/the-hardest-part-getting-started/
Slide 28
Slide 28 text
28
Slide 29
Slide 29 text
29
Slide 30
Slide 30 text
30
Slide 31
Slide 31 text
31
Slide 32
Slide 32 text
32
Slide 33
Slide 33 text
33
Slide 34
Slide 34 text
34
Slide 35
Slide 35 text
35
Tip
Red: the shard is not
allocated in the cluster.
Yellow: primary shard is
allocated but replicas are
not.
Green: all shards
allocated.
Slide 36
Slide 36 text
36
Slide 37
Slide 37 text
37
Tip
If you don’t specify the id,
the Elasticsearch server
will assign one for the
given document.
Slide 38
Slide 38 text
38
Slide 39
Slide 39 text
39
Slide 40
Slide 40 text
40
Slide 41
Slide 41 text
41
Slide 42
Slide 42 text
42
Tip
Be careful with updates.
Elasticsearch takes
advance on
write-once-read-many
architectures.