You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for a term with synonyms I get results from which it'is complex to trace the synonym matching the document, for example because of typo tolerance or because the synonym is made of two words.
Is it possible to modify the query processing to track synonym matches?
for example, given the following synonyms ["blazer", "coat", "jacket"]
when searching for "coat" to have a result like this
{
"hits": [
{
"document": {
"id": "1",
"title": "Sample Document",
"content": "You have a nice jaket."
},
"matched_synonym": "jacket"
},
{
"document": {
"id": "2",
"title": "Sample Document Bis",
"content": "One supermarket offered a school blazer for just $10."
},
"matched_synonym": "blazer"
}
]
}
The text was updated successfully, but these errors were encountered:
The highlighting section associated with each result should already have matched keywords, which when different from the words in the query, can help you figure out which synonym is being used for resolving that hit. Wouldn't that be sufficient?
Description
When searching for a term with synonyms I get results from which it'is complex to trace the synonym matching the document, for example because of typo tolerance or because the synonym is made of two words.
Is it possible to modify the query processing to track synonym matches?
for example, given the following synonyms ["blazer", "coat", "jacket"]
when searching for "coat" to have a result like this
The text was updated successfully, but these errors were encountered: