# Slow range filter on String

**URL:** <https://discuss.elastic.co/t/slow-range-filter-on-string/87794>\
**Category:** Elasticsearch\
**Created:** [May 31, 2017, 6:29pm UTC](https://discuss.elastic.co/t/slow-range-filter-on-string/87794 "2017-05-31T18:29:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EuclideanSearch](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@EuclideanSearch](https://discuss.elastic.co/u/EuclideanSearch)\
**Post date:** [May 31, 2017, 6:29pm UTC](https://discuss.elastic.co/t/slow-range-filter-on-string/87794/1 "2017-05-31T18:29:11Z")

</div>

Hi,

The documents I have contain ids that are strings. I notice that doing range query of the form the\_id \>= X (where X is some input) can considerably slow down the query (the documents also have a timestamp; a filter of 'timetsamp between X and Y' works fine but a filter of the form 'timestamp between X and Y AND the\_id\>=X' is slow). Are there any performance optimizations (maybe not caching) that I can use to increase the speed?

Thanks for any help in advance,  
EuclideanSearch

---

<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:** [June 28, 2017, 6:29pm UTC](https://discuss.elastic.co/t/slow-range-filter-on-string/87794/2 "2017-06-28T18:29:47Z")

</div>

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