# Elasticsearch query sort order index

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-sort-order-index/137419>\
**Category:** Logstash\
**Created:** [June 26, 2018, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-query-sort-order-index/137419 "2018-06-26T10:54:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)\
**Post date:** [June 26, 2018, 7:18pm UTC](https://discuss.elastic.co/t/elasticsearch-query-sort-order-index/137419/3 "2018-06-26T19:18:20Z")

</div>

Thank you.

Providing in the elasticsearch filter plugin these settings:

```
result_size => 1
enable_sort => true

```

Do you think Logstash will return only the first match found in index logstash-2018.06.24 or something else?

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-query-sort-order-index/137419)._
