'Elastic search ,search query in field in order

there i tried searching query on index where the result should come by searching on the field . But the searching pattern should be like:

lets say i have 3 fields :A ,B,C . so if the searched query matches on field A then return that value and don't perform search operation on other field B,C.

i tried using multi match and highlight feature to search but unable to get desired output... So , if any one can help it will be great.

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source