Hello
I am using Appsearch to power search for an application, I know that App search take care of the mapping & analyzer, and also the search query, when doing some inspection, i could see the kind of the search query sent to ES endpoint, something like this
{
"multi_match": {
"query": "United Kingdom",
"minimum_should_match": "1<-1 3<49%",
"boost": 1,
"type": "cross_fields",
"operator": "OR",
"fields": [
"country$string^1.0",
"country$string.stem^0.95",
"country$string.prefix^0.1",
"country$string.joined^0.75",
"country$string.delimiter^0.4",
"name$string^1.0",
"name$string.stem^0.95",
"name$string.prefix^0.1",
"name$string.joined^0.75",
"name$string.delimiter^0.4",
"external_id^1.0"
]
}
}
My search logic does not require searching on fields analyzed diffrently like stem, prefix, joinded, i want to search only on the basic fields like : country$string & name$string
How i can change the behavior of App search to search only on fields i want to avoid getting some noises
Like if i want to ask App search to send something like this
{
"multi_match": {
"query": "United Kingdom",
"minimum_should_match": "1<-1 3<49%",
"boost": 1,
"type": "cross_fields",
"operator": "OR",
"fields": [
"country$string^1.0",
"name$string^1.0"
]
}
}
Thank You