What are the best ways to find near phrases? How to combine them to find near to nearest near? ))

How to find nearest near.

"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?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.