Hi, I am currently struggling to find a way to search for fuzzy phrases in elastaticsearch 5.x.
Let me give an example: Let's say I want to find fuzzy phrase "word1 word2". That means I want to find documents containing word1 and word2 or their fuzzy variants close to each other. Matching documents would be eg:
- "word1 word2"
- "word2 word1"
but also 3. "wodr1 word2"
or 4. "wrod2 word1"
or 5. "word1 another-word word2"
but not "word1 thousands-of-other-words word2"
I hope this explains well what kind of functionality I am looking for.
I know I can use "match_phrase" query with slop for proximity and "match" query for fuzziness. But I don't know how to combine them. I have studied plenty of elasticsearch DSL documentation without finding an answer.
I would be really glad if someone could help.