I have an index with several fields, among which I have 3 fields, each defined with a different language analyzer (german, english and french).
Which analyzer will be used in a multi-match query ? Will Elasticsearch use the specific analyzer separately for each field ?
GET lessons-list-fr-en/_search
{
"from": 0,
"size": 10,
"query": {
"multi_match" : {
"query": "Introducing",
"fields": [ "title", "description", "category"]
}
}
}
Or should I use a combinaison of 'should' queries ?
GET lessons-list-en-fr/_search
{
"from": 0,
"size": 10,
"query": {
"bool": {
"should": [
{
"match": {
"title": "Introducing"
}
},
{
"match": {
"description": "Introducing"
}
},
{
"match": {
"category": "Introducing"
}
}
]
}
}
}