When I try to search for a document using an exact value, I notice that the desired document is not being properly classified, even when the search value is identical to that contained in the document. This has a negative impact on the score assigned to the document, and I am seeking to understand and correct this discrepancy to improve search accuracy.
Query:
{
"query": {
"bool": {
"should": [
{
"fuzzy": {
"body.provider": "fortune dragon"
}
},
{
"fuzzy": {
"body.types": "fortune dragon"
}
},
{
"fuzzy": {
"body.tags": "fortune dragon"
}
},
{
"match": {
"body.tags": "fortune dragon"
}
},
{
"fuzzy": {
"body.name": "fortune dragon"
}
},
{
"match": {
"body.name": "fortune dragon"
}
},
{
"prefix": {
"body.name": "fortune dragon"
}
}
],
"must": [
{
"match": {
"status": "ACTIVE"
}
},
{
"match": {
"body.providerStatus": "ACTIVE"
}
}
],
"minimum_should_match": 1
}
},
"size": 50,
"from": 0,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}