Match query is not supporting "or" in between the words


(anusha) #1

Hi,
Am using match query as shown below,

GET ymme/ymme_type/_search
{
"size": 40,
"query": {
"match": {
"_all":
{
"query": "2012 or 1912 astont martini",
"operator": "and",
"fuzziness": 2,
"prefix_length": 4

}

}
}
}
Where I would like to perform or operation in between the two values "2012" and "1912", when am executing the above query getting no response. How can I achieve "or" operation in between those two values in match query?????


(system) #2