# List documents with particular field at specified positions in the result set

**URL:** https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290
**Category:** Elasticsearch
**Created:** [September 12, 2016, 12:16pm UTC](https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290 "2016-09-12T12:16:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RamSailendraVarma](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@RamSailendraVarma](https://discuss.elastic.co/u/RamSailendraVarma)
#### Post date: [September 12, 2016, 12:16pm UTC](https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290/1 "2016-09-12T12:16:22Z")

</div>

Hi All,

```
I just started using ElasticSearch. It has been fantastic experience. Am facing a particular issue like,

```

I have a set of documents indexed in Elasticsearch say 100 docs.

Among those 100 i have 5 docs with specific field, which when queried these 5 should come in specific positions like (2,5,7,9).

Any Idea about how to implement.

thanx in advance,  
Ram.

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [September 12, 2016, 12:30pm UTC](https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290/2 "2016-09-12T12:30:40Z")

</div>

Maybe have a look at the function\_score query so that you can control how documents get scored based on your business logic. If you cannot use any of the functions, you can use your own script to calculate the score for each document.

---

<div class="post-metadata">

### Author: ![RamSailendraVarma](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@RamSailendraVarma](https://discuss.elastic.co/u/RamSailendraVarma)
#### Post date: [September 13, 2016, 2:46am UTC](https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290/3 "2016-09-13T02:46:37Z")

</div>

thank you javanna, let me try out

---

<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: [July 5, 2017, 10:20pm UTC](https://discuss.elastic.co/t/list-documents-with-particular-field-at-specified-positions-in-the-result-set/60290/4 "2017-07-05T22:20:54Z")

</div>


