How to find nearest near.
Example:
"query" : {
"query_string": {
"query": "\"field korean\"~10",
"fields" : ["message.stemmed"],
"default_operator": "AND"
}
It finds all strings that contain words field and korean with slope of 10 words.
But what if want to make more complex query, that finds after previoues pfrase?
field korean(slope 10) - and after this another phrase not farther than 5 words.
For instance ("infantry battle")
Is it even possible using query_string?
So slope after phrase? Ho to implement it?
Can you give some examples?