# Scoring results by type\_index

**URL:** <https://discuss.elastic.co/t/scoring-results-by-type-index/58621>\
**Category:** Elasticsearch\
**Created:** [August 22, 2016, 9:22pm UTC](https://discuss.elastic.co/t/scoring-results-by-type-index/58621 "2016-08-22T21:22:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcel\_Augusto\_Costa](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@Marcel\_Augusto\_Costa](https://discuss.elastic.co/u/Marcel_Augusto_Costa)\
**Post date:** [August 22, 2016, 9:22pm UTC](https://discuss.elastic.co/t/scoring-results-by-type-index/58621/1 "2016-08-22T21:22:21Z")

</div>

Hello!!

I have 3 indexes as following:

Index\_CEO - Type\_CEO - Document{ Name: William }  
Index\_Chief - Type\_Chief - Document{ Name: Homer }  
Index\_Player - Type\_Player - Document{ Name: Marcel }

How do I setup my search to give relevance to Index\_Player documents? I would like my result as

1- Marcel - Type\_Player  
2- William - Type\_CEO  
3- Homer - Type\_Chief

Thanks for help!!!

PS: I find the answer!!!

POST [http://10.20.30.40:9200/\_search](http://10.20.30.40:9200/_search)  
{  
"query": {  
"match": {  
"\_all": {  
"query": "Marcel",  
"operator": "and"  
}  
}  
},  
"indices\_boost": {  
"indice\_player": 5.0,  
"indice\_ceo": 4.0,  
"indice\_chief": 3.0  
}  
}

---

<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, 10:26pm UTC](https://discuss.elastic.co/t/scoring-results-by-type-index/58621/2 "2017-07-05T22:26:02Z")

</div>


