Hello!
I am able to get the fuzzy search to work for single words.
How to handle fuzziness in a phrase?
Best,
Supriya
Hello!
I am able to get the fuzzy search to work for single words.
How to handle fuzziness in a phrase?
Best,
Supriya
Perhaps what you are looking for is slop in phrase queries: https://docs.atlas.mongodb.com/reference/atlas-search/phrase/
Thank you @Marcus!
I had to split the phrase into multiple words and use a compound must
clause with multiple text
clauses.
Sample:
User looking for anaemia disorder
but misspelled it as anemia diorder
"must": [
{
"text": {
"query": "anemia",
"path": "Text",
fuzzy: {'maxEdits':2.0}
}
},
{
"text": {
"query": "diorder",
"path": "Text",
fuzzy: {'maxEdits':2.0}
}
}
]
Is there a better way to do it?
Using the phrase search with slop didn’t work well with fuzziness.
Best,
Supriya
Did you find any solution for this ?
Not for the phrase, multiple must clauses works