# matchedQueries ordering in SearchHit

**URL:** <https://discuss.elastic.co/t/matchedqueries-ordering-in-searchhit/128315>\
**Category:** Elasticsearch\
**Created:** [April 17, 2018, 8:36am UTC](https://discuss.elastic.co/t/matchedqueries-ordering-in-searchhit/128315 "2018-04-17T08:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewHere](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@NewHere](https://discuss.elastic.co/u/NewHere)\
**Post date:** [April 17, 2018, 8:36am UTC](https://discuss.elastic.co/t/matchedqueries-ordering-in-searchhit/128315/1 "2018-04-17T08:36:36Z")

</div>

Hi I want to get the items in matchedQueries of SearchHit ordered by the boost score in each ConstantScoreQuery (which are the sub-queries of a DisMaxQuery), but it seems there is simply no ordering in it? What good ways do I have to achieve this? Thank you.

---

<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:** [May 15, 2018, 8:42am UTC](https://discuss.elastic.co/t/matchedqueries-ordering-in-searchhit/128315/2 "2018-05-15T08:42:25Z")

</div>

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