# Pick random set from index (not progressive)

**URL:** <https://discuss.elastic.co/t/pick-random-set-from-index-not-progressive/73067>\
**Category:** Elasticsearch\
**Created:** [January 27, 2017, 10:00pm UTC](https://discuss.elastic.co/t/pick-random-set-from-index-not-progressive/73067 "2017-01-27T22:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phlegx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phlegx/32/14979_2.png) [@phlegx](https://discuss.elastic.co/u/phlegx)\
**Post date:** [January 27, 2017, 10:00pm UTC](https://discuss.elastic.co/t/pick-random-set-from-index-not-progressive/73067/1 "2017-01-27T22:00:40Z")

</div>

Hi!

I want to do a search-as-you-type and I want to get a random set from query.

At the moment the results are progressive from index. Using search term `a` the results are `aa, aaa, aab, aba...`. But I want results like `at, am, aa, ar, aau,...`.

**How can I accomplish this results? Any idea?**

---

<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:** [February 24, 2017, 10:00pm UTC](https://discuss.elastic.co/t/pick-random-set-from-index-not-progressive/73067/2 "2017-02-24T22:00:50Z")

</div>

Closed on February 24, 2017, 10:00pm UTC

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