Query : {"query":{"bool":{"should":[{"match":{"4":{"query":"kavana","_name":"4.WordMatch"}}},{"match":{"4.exactMatch":{"query":"kavana","_name":"4.exactMatch"}}}],"minimum_should_match":1}}}
Output of Match Cases:
"matched_queries": ["4.WordMatch", "4.exactMatch"]
My Requirement is If Match happend then I don't want check remaining match cases of Query because of it will decrease search performance but it will increase documents count. Think as Should as IF condition and match case as Condition .Suppose each Condition between OR mean if First condition true mean it will entry into IF condition or checking remaining condition.Same behaviour I am Expecting
Sample Query :
{"query":{"bool":{"should":[{"match":{"4":{"query":"kavana","_name":"4.WordMatch"}}},{"match":{"4.exactMatch":{"query":"kavana","_name":"4.exactMatch"}}}],"minimum_should_match":1}}}
Sample OutOut :
"matched_queries": ["4.WordMatch"]
or
"matched_queries": ["4.exactMatch"]