# How to Query multiple types that has the same field but different boosts in Elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-query-multiple-types-that-has-the-same-field-but-different-boosts-in-elasticsearch/20840>\
**Category:** Elasticsearch\
**Created:** [November 19, 2014, 4:42pm UTC](https://discuss.elastic.co/t/how-to-query-multiple-types-that-has-the-same-field-but-different-boosts-in-elasticsearch/20840 "2014-11-19T16:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ra\_Min](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Ra\_Min](https://discuss.elastic.co/u/Ra_Min)\
**Post date:** [November 19, 2014, 4:42pm UTC](https://discuss.elastic.co/t/how-to-query-multiple-types-that-has-the-same-field-but-different-boosts-in-elasticsearch/20840/1 "2014-11-19T16:42:16Z")

</div>

I have 3 types : [place, doctor, article] where each type has a field named  
title. article type has an extra field named body. I want to match a query  
against these 3 types title fields with different boost numbers. for  
example : doctor's title has boost of 3 whereas place's title has boost of  
2.

How can I implement this Query?(I just want the request body )

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5272a806-7834-4eb7-adda-513b8a600a51%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5272a806-7834-4eb7-adda-513b8a600a51%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:48am UTC](https://discuss.elastic.co/t/how-to-query-multiple-types-that-has-the-same-field-but-different-boosts-in-elasticsearch/20840/2 "2017-07-06T00:48:58Z")

</div>


