# How to Prioritize multi match result by field names

**URL:** <https://discuss.elastic.co/t/how-to-prioritize-multi-match-result-by-field-names/40124>\
**Category:** Elasticsearch\
**Created:** [January 26, 2016, 1:41pm UTC](https://discuss.elastic.co/t/how-to-prioritize-multi-match-result-by-field-names/40124 "2016-01-26T13:41:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noha5](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@noha5](https://discuss.elastic.co/u/noha5)\
**Post date:** [January 26, 2016, 1:41pm UTC](https://discuss.elastic.co/t/how-to-prioritize-multi-match-result-by-field-names/40124/1 "2016-01-26T13:41:27Z")

</div>

Hi, I have a problem with prioritize results from multi match query by fields name.  
I’m using this query :  
{  
"query": {  
"multi\_match": {  
"query": "some\_string",  
"fields": ["\_all"]  
}  
}  
}  
I have a lots of different fields in multiple indexes and types, and I need to prioritize/sort results by field names in which query string was found. For example, if query return multiple items, I need items where “some\_string” was found in field with name “most\_important\_field” first, because this result is much more important that others with some else fields. Therefor I need specify a few field names that have to have better score.  
I’m using ElasticSearch version 1.6 (mainly in Java API).  
Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/how-to-prioritize-multi-match-result-by-field-names/40124/2 "2017-07-05T23:21:26Z")

</div>


