I have a query where I get results which may or may not have fuzzy search results. I want to get analytics on what results are the result of fuzzy search. How can this be achieved ?
{
"query": {
"bool": {
"filter": [
{
"bool": {
"must": [
{
"terms": {
"ent_id": [
"2e874714-038f-40f2-92ea-51aa8e99722e"
],
"boost": 1
}
} ],
"adjust_pure_negative": true,
"boost": 1
}
}
],
"should": [
{
"multi_match": {
"query": "talent",
"fields": [
"description^50.0",
"description.exactMatch^2500.0",
"description.keyword^60.0",
"description.shingles^70.0",
"description_md^50.0",
"page_content^50.0",
"search_keywords^6000.0",
"step_description^20.0",
"step_description.keyword^30.0",
"step_description.shingles^40.0",
"step_note^20.0",
"title^800.0",
"title.exactMatch^12000.0",
"title.keyword^900.0",
],
"type": "best_fields",
"operator": "OR",
"slop": 0,
"fuzziness": "AUTO",
"prefix_length": 1,
"max_expansions": 50,
"zero_terms_query": "NONE",
"auto_generate_synonyms_phrase_query": true,
"fuzzy_transpositions": true,
"boost": 1
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"min_score": 0.01,
"sort": [
{
"_score": {
"order": "desc"
}
},
{
"source": {
"order": "asc"
}
}
]
}```