# Query suggestion multi fields + raw field and with results new created boosted

**URL:** <https://discuss.elastic.co/t/query-suggestion-multi-fields-raw-field-and-with-results-new-created-boosted/46625>\
**Category:** Elasticsearch\
**Created:** [April 7, 2016, 5:53am UTC](https://discuss.elastic.co/t/query-suggestion-multi-fields-raw-field-and-with-results-new-created-boosted/46625 "2016-04-07T05:53:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulcse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulcse/32/12158_2.png) [@rahulcse](https://discuss.elastic.co/u/rahulcse)\
**Post date:** [April 7, 2016, 5:53am UTC](https://discuss.elastic.co/t/query-suggestion-multi-fields-raw-field-and-with-results-new-created-boosted/46625/1 "2016-04-07T05:53:39Z")

</div>

Hi,  
we are trying to query 3 fields for a given text.  
3 fields are  
body, title and raw-body (not analyzed). title is of the most importance  
and then the body and raw-body. if thing matches exactly with raw-body  
we want it to be ranked higher. Also if matches are identical in 2  
documents we want to use decay function for promotion of fresh content.

Can you please give me some idea how we can write this complicated query?

Thanks in advance.

Regards,  
Rahul

---

<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:01pm UTC](https://discuss.elastic.co/t/query-suggestion-multi-fields-raw-field-and-with-results-new-created-boosted/46625/2 "2017-07-05T23:01:39Z")

</div>


