I'm using elastic search 7.6.2
I have index with the following mapping:
"mappings": {
"properties": {
"content": {"type": "text"},
}
}
with 3 documents:
- michael jordan and scottie pippen - NBA is a professional basketball league in North America.
- michael jordan and scottie pippen - National Basketball Association
- michael jordan and scottie pippen
I'm running the following simple query:
"query":{
"bool":{
"must":[
{
"span_near":{
"clauses":[
{
"span_multi":{
"match":{
"fuzzy":{
"content":{
"value":"hael",
"fuzziness":4
}
}
}
}
},
],
"slop":1,
"in_order": "true"
}
}
]
}
}
}
And I'm getting 0 results.
- Why I'm not getting results ? (The value
hael
has 3 missing letters, and thefuzziness
is 4) ? - What is the meaning of
slop
(at the end of the query) ? (It seems that it doesn't do nothing)