# Fast checking on integer values?

**URL:** <https://discuss.elastic.co/t/fast-checking-on-integer-values/98865>\
**Category:** Elasticsearch\
**Created:** [August 30, 2017, 2:22pm UTC](https://discuss.elastic.co/t/fast-checking-on-integer-values/98865 "2017-08-30T14:22:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESCoder](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@ESCoder](https://discuss.elastic.co/u/ESCoder)\
**Post date:** [August 30, 2017, 2:22pm UTC](https://discuss.elastic.co/t/fast-checking-on-integer-values/98865/1 "2017-08-30T14:22:00Z")

</div>

hi,  
i have a document structure:  
{  
category\_id : "1"  
description: "Long descriptions etc. etc. "  
}

When searching, i want to only search across specific category\_id's, like :

category\_id = 1 && description = "some text"

are there any optimization techniques to do fast checking with multiple conditions or does elastic do that on its own?

In other words, can i create sort of an index on category\_id column like in a database so that itll be faster when searching?

thanks!

---

<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:** [September 27, 2017, 2:22pm UTC](https://discuss.elastic.co/t/fast-checking-on-integer-values/98865/2 "2017-09-27T14:22:18Z")

</div>

Closed on September 27, 2017, 2:22pm UTC

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