I need to do phrase search, where I need several things:
- the order of the words does not matter
- I need to specify the possible gap between matched words
- I need to consider matches with stopwords inside the phrase
I have found that 'query_string' can deal with all of those.
The question I have is that if I have a document "three four world that awesome those hello five" and I would look for "hello world" I expect that this document won't be matched if I specify slop(or gap between matches) as 0.
I have attached script that reproduces this false positive. Script is here
Maybe I am doing something wrong?