Stop Words a an and are as at be but by for if in into is it no not of on or such that the their then there these they this to was will with https://github.com/apache/lucene-solr/blob/master/lucene/ analysis/common/src/java/org/apache/lucene/analysis/en/ EnglishAnalyzer.java#L45-L52
Another Example Obi-Wan never told you what happened to your father.
Slide 43
Another Example obi
wan never told you what happen your father
Slide 44
Another Example <b>No</b>. I am your father.
Slide 45
Another Example i
am your
father
Slide 46
Inverted Index am droid father happen i look never obi told wan what you your
ID 1 0 1[4] 0 0 0 1[7] 0 0 0 0 0 1[5] 0
ID 2 0 0 1[9] 1[6] 0 0 1[2] 1[0] 1[3] 1[1] 1[5] 1[4] 1[8]
ID 3 1[2] 0 1[4] 0 1[1] 0 0 0 0 0 0 0 1[3]
Synonyms Index synonym or query time synonym_graph
Slide 52
GET /starwars/_mapping GET /starwars/_settings
Slide 53
PUT /starwars/_doc/1 { “quote”: “These are <em>not</em> the droids you are looking for.” } PUT /starwars/_doc/2 { “quote”: “Obi-Wan never told you what happened to your father.” } PUT /starwars/_doc/3 { “quote”: “<b>No</b>. I am your father.” }
Slide 54
GET /starwars/_doc/1 GET /starwars/_doc/1/_source
Slide 55
Multi Lingual Index
PUT /starwars_en/_doc/1
Field
{ “quote_en”: “…”, “quote_de”: “…” }
Slide 56
Search
Slide 57
POST /starwars/_search { “query”: { “match_all”: { } } }
Slide 58
{
“took”: 1, “timed_out”: false, “_shards”: { “total”: 5, “successful”: 5, “failed”: 0 }, “hits”: { “total”: 3, “max_score”: 1, “hits”: [ { “_index”: “starwars”, “_type”: “_doc”, “_id”: “2”, “_score”: 1, “_source”: { “quote”: “Obi-Wan never told you what happened to your father.” } }, …
Don’t do this. Seriously. Stop trying to think about your problem this way, it’s not going to end well. — https://wiki.apache.org/lucene-java/ ScoresAsPercentages
Slide 106
GET /starwars/_analyze { “analyzer” : “my_analyzer”, “text”: “These are my father’s machines.” }