# Multiple \`sort\` using with only one \`search\_after\`

**URL:** <https://discuss.elastic.co/t/multiple-sort-using-with-only-one-search-after/195213>\
**Category:** Elasticsearch\
**Created:** [August 14, 2019, 1:24pm UTC](https://discuss.elastic.co/t/multiple-sort-using-with-only-one-search-after/195213 "2019-08-14T13:24:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coExp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/coexp/32/56028_2.png) [@coExp](https://discuss.elastic.co/u/coExp)\
**Post date:** [August 14, 2019, 1:24pm UTC](https://discuss.elastic.co/t/multiple-sort-using-with-only-one-search-after/195213/1 "2019-08-14T13:24:16Z")

</div>

Hi everyone,

I sort my results on field `name` witch is not unique, and the field `uuid` (unique id):  
`"sort": [{ "name": {"order": "desc"} }, { "uuid": {"order": "asc"} }]`  
But I would like to search after the field `uuid` only:  
`"search_after": ["4dace013-8467-447c-bf4a-13eca37aab35"]`

Is there a way to do that?

The only solution I found, is to load the document before the request and to search after with the complete sorted fields :  
`"search_after": ["The last name", "4dace013-8467-447c-bf4a-13eca37aab35"]`

Thanks.

---

<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:** [September 11, 2019, 1:24pm UTC](https://discuss.elastic.co/t/multiple-sort-using-with-only-one-search-after/195213/2 "2019-09-11T13:24:25Z")

</div>

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