# Cannot search long number field

**URL:** <https://discuss.elastic.co/t/cannot-search-long-number-field/121603>\
**Category:** Elasticsearch\
**Created:** [February 27, 2018, 7:47am UTC](https://discuss.elastic.co/t/cannot-search-long-number-field/121603 "2018-02-27T07:47:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khiem\_Tr\_n](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@Khiem\_Tr\_n](https://discuss.elastic.co/u/Khiem_Tr_n)\
**Post date:** [February 27, 2018, 7:47am UTC](https://discuss.elastic.co/t/cannot-search-long-number-field/121603/1 "2018-02-27T07:47:41Z")

</div>

Hi all,  
I have a problem with Elasticsearch. vid is a long field in my index. I try to search with:

```
POST my-index/video/_search
{
  "query": {
    "term": {
      "vid": 6518061120253592000
    }
  }
}

```

but get nothing. Try with other fields (not long type), it's successful. I'm sure that the document is existed in Elasticsearch.

My Elasticsearch version is 5.4.0

Please help me. Thanks!

---

<div class="post-metadata">

**Author:** ![Khiem\_Tr\_n](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@Khiem\_Tr\_n](https://discuss.elastic.co/u/Khiem_Tr_n)\
**Post date:** [February 27, 2018, 8:44am UTC](https://discuss.elastic.co/t/cannot-search-long-number-field/121603/2 "2018-02-27T08:44:36Z")

</div>

I finally found the root cause here:

[https://github.com/elastic/elasticsearch/issues/15292](https://github.com/elastic/elasticsearch/issues/15292)

---

<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:** [March 27, 2018, 8:44am UTC](https://discuss.elastic.co/t/cannot-search-long-number-field/121603/3 "2018-03-27T08:44:39Z")

</div>

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