# Grouping results into tranches

**URL:** <https://discuss.elastic.co/t/grouping-results-into-tranches/174873>\
**Category:** Elasticsearch\
**Created:** [April 1, 2019, 8:49pm UTC](https://discuss.elastic.co/t/grouping-results-into-tranches/174873 "2019-04-01T20:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emarthinsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emarthinsen/32/23172_2.png) [@emarthinsen](https://discuss.elastic.co/u/emarthinsen)\
**Post date:** [April 1, 2019, 8:49pm UTC](https://discuss.elastic.co/t/grouping-results-into-tranches/174873/1 "2019-04-01T20:49:26Z")

</div>

Hi. I have an index of profiles. Right now, someone can search that index and get results back sorted by `_score`. Each profile has a profile picture, contact details, and a bio (Note, I'm simplifying my actual data model for simplicity). What I want to do is put profiles with complete data at the top of the list, profiles with partial data in the middle, and profiles with no data at the bottom of the list. Within each tranche (complete, partial, and no data), I want to sort by \_score. What's the best way to go about this?

Thanks in advance.

---

<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:** [April 29, 2019, 8:49pm UTC](https://discuss.elastic.co/t/grouping-results-into-tranches/174873/2 "2019-04-29T20:49:31Z")

</div>

Closed on April 29, 2019, 8:49pm UTC

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