# How to order the query for searching the fields in a particular order

**URL:** <https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912>\
**Category:** Elastic Search\
**Created:** [April 22, 2021, 12:17am UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912 "2021-04-22T00:17:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsr](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vsr](https://discuss.elastic.co/u/vsr)\
**Post date:** [April 22, 2021, 12:17am UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912/1 "2021-04-22T00:17:19Z")

</div>

I am new to elastic enterprise search and working on elastic cloud .We would like to rank the searching the fields in the query . Please help us how to achieve this .

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [April 23, 2021, 8:54pm UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912/2 "2021-04-23T20:54:43Z")

</div>

Hi,

I'd like to help, but I'm not quite sure I understand what you mean. Can you please provide more details, perhaps an example of what you want?

Thank you

---

<div class="post-metadata">

**Author:** ![vsr](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vsr](https://discuss.elastic.co/u/vsr)\
**Post date:** [April 24, 2021, 12:11am UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912/3 "2021-04-24T00:11:57Z")

</div>

I am looking how to implement below features:

1. Search should begin from defined fields . For example - my search should look into Description fields , then Title field then next field.
2. How to do customized the scoring to present the results. For example I want to present the results to the user based on the score. Highest score data element will be on the top. Scoring will be based on couple parameters such as Paid customer , premium customer , non-paid etc..

---

<div class="post-metadata">

**Author:** ![Irina\_Truong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/irina_truong/32/112040_2.png) [@Irina\_Truong](https://discuss.elastic.co/u/Irina_Truong)\
**Post date:** [April 24, 2021, 6:19am UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912/4 "2021-04-24T06:19:49Z")

</div>

Hi,

You didn't specify the product you're using (or would like to start using), but sounds like this is the question about App Search. Let me know if this is not correct.

1. You can't specify the order of fields on which search is done. But it really does not matter, in terms of what results are returned.
2. You can configure which fields are more and less important using field weights and boosts:

> **[Relevance Tuning Guide, Weights and Boosts | Elastic App Search Documentation...](https://www.elastic.co/guide/en/app-search/current/relevance-tuning-guide.html)**

Results will be ordered according to the score. App Search includes Query Tester, where you can try your searches and see the results of applying different tuning parameters.

---

<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:** [November 4, 2022, 8:29am UTC](https://discuss.elastic.co/t/how-to-order-the-query-for-searching-the-fields-in-a-particular-order/270912/5 "2022-11-04T08:29:22Z")

</div>


