Multi field query

Dear sir,

If I want to search from the index from multiple keywords then which one is appropriate and we can get a better result.
GET subject_index/_search
{
"query": {
"bool": {
"must": [
{
"bool": {
"should": [
{
"match": {
"name": "c"
}
},
{
"match": {
"description": "c"
}
},
{
"match": {
"shortName": "c"
}
}
]
}
}
]
}
}
}

OR

GET subject_index/_search
{
"query": {
"query_string": {
"fields": ["name","description", "shortName"],
"query": "c"
}
}
}

OR

GET subject_index/_search
{
"query": {
"multi_match": {
"query": "c",
"fields": ["name","description","shortName"]
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.