I'm using elastic search 7.6.2
I have index with the following mapping:
"mappings": {
"properties": {
"content": {"type": "text"},
}
}
with 3 documents:
- Distributed nature, simple REST APIs, speed, and scalability
- Distributed nature, simple APIs, speed, and scalability
- Known for its simple REST APIs, distributed nature, speed, and scalability, Elasticsearch is the central component of the Elastic Stack, a set of open source tools for data ingestion, enrichment, storage, analysis, and visualization.
I'm running the following simple query:
"query": {
"bool": {
"must": [
{
"span_near": {
"clauses": [
{
"span_multi": {
"match": {
"fuzzy": {
"content": {
"value": "Distributed",
"fuzziness": 2
}
}
}
}
},
{
"span_multi": {
"match": {
"fuzzy": {
"content": {
"value": "APIs",
"fuzziness": 2
}
}
}
}
}
],
"slop": 5,
"in_order": "true"
}
}
]
}
}
And I'm getting 0 results.
- Why I'm getting 0 results ? (first document need to show in thre results: "Distributed _ _ _ APIs")
- How slop value used here ?