# Query against array of long types returns nothing

**URL:** <https://discuss.elastic.co/t/query-against-array-of-long-types-returns-nothing/78034>\
**Category:** Elasticsearch\
**Created:** [March 9, 2017, 6:05pm UTC](https://discuss.elastic.co/t/query-against-array-of-long-types-returns-nothing/78034 "2017-03-09T18:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiancheng\_Li](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@Tiancheng\_Li](https://discuss.elastic.co/u/Tiancheng_Li)\
**Post date:** [March 9, 2017, 6:05pm UTC](https://discuss.elastic.co/t/query-against-array-of-long-types-returns-nothing/78034/1 "2017-03-09T18:05:40Z")

</div>

I have a cluster with documents, with one field being an array of long types. Below is an example value of this field:  
"request\_categories": [  
150848602323501540,  
150847029425938900  
],

When I query the field, it does not return anything. Below is the query.  
GET service\_alias/service/\_search  
{  
"query": {  
"term": {  
"request\_categories" : 150848602323501540  
}  
}  
}

This data field is indexed. I have no problems querying other data fields. Anything that I may have missed? Thanks!

Tiancheng

---

<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:** [April 6, 2017, 6:06pm UTC](https://discuss.elastic.co/t/query-against-array-of-long-types-returns-nothing/78034/2 "2017-04-06T18:06:08Z")

</div>

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