# Pin search results in a specific order

**URL:** https://discuss.elastic.co/t/pin-search-results-in-a-specific-order/199267
**Category:** Elasticsearch
**Created:** [September 12, 2019, 2:06pm UTC](https://discuss.elastic.co/t/pin-search-results-in-a-specific-order/199267 "2019-09-12T14:06:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pocguy](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@pocguy](https://discuss.elastic.co/u/pocguy)
#### Post date: [September 12, 2019, 2:06pm UTC](https://discuss.elastic.co/t/pin-search-results-in-a-specific-order/199267/1 "2019-09-12T14:06:01Z")

</div>

Suppose a search for a query "test" return results based on the relevancy , e.g : Page 1, Page 3, Page 2, Page 4.

Is it possible that we could within a single Elasticsearch query API order the results as  
Page 1, Page 2, Page 3, Page 4. Basically pin the Page 2 at the second position of the search results for the given "test" query, overriding the score returned from ElasticSearch

Can we modify the score of page 2 such that it is less than the final score of Page 1 and greater than Page 3? This has to be done for the given query "test". We could further extend the same such that we define the order as Page 1, Page 2, Page 4, Page 3 where multiple pages are pinned to a given order?

---

<div class="post-metadata">

### Author: ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)
#### Post date: [September 12, 2019, 2:20pm UTC](https://discuss.elastic.co/t/pin-search-results-in-a-specific-order/199267/2 "2019-09-12T14:20:09Z")

</div>

Sounds like the feature coming in 7.5.

> <https://github.com/elastic/elasticsearch/issues/44074>

---

<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: [October 10, 2019, 2:20pm UTC](https://discuss.elastic.co/t/pin-search-results-in-a-specific-order/199267/3 "2019-10-10T14:20:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
