Hi everyone, I stumbled on this issue, I have a search query composed of multiple should clauses:
{'index': 'default',
'compound':
{'should': [
{'text':
{'query': 'artificial', 'path': 'child',
'fuzzy': {'maxEdits': 1, 'prefixLength': 4,
'maxExpansions': 512}}},
{'text':
{'query': 'intelligence', 'path': 'child',
'fuzzy': {'maxEdits': 1, 'prefixLength': 4,
'maxExpansions': 512}}},
{'text':
{'query': 'articlies', 'path': 'child',
'fuzzy': {'maxEdits': 1, 'prefixLength': 4,
'maxExpansions': 512}}}]},
'highlight': { 'path': 'child'}
}
This returns this match from the collection:
child: "articles"
highlights: Object
score: 1.408543348312378
path: "child"
texts:
Array: {value:"articles"}
Ok now I know that I matched articles, but how can I know that I matched ‘articlies’ (expecially fuzzy matches) in the original query?