# Can't query a long number?

**URL:** <https://discuss.elastic.co/t/cant-query-a-long-number/55076>\
**Category:** Kibana\
**Created:** [July 8, 2016, 5:54pm UTC](https://discuss.elastic.co/t/cant-query-a-long-number/55076 "2016-07-08T17:54:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoss](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hoss](https://discuss.elastic.co/u/Hoss)\
**Post date:** [July 8, 2016, 5:54pm UTC](https://discuss.elastic.co/t/cant-query-a-long-number/55076/1 "2016-07-08T17:54:44Z")

</div>

I'm using Serilog (C#) with latest version of Elasticsearch and Kibana.

Serilog creates the index. I have a field called RunID that is a long in C# that I specify like so...

`serilog.Information("{RunID} - Case {CaseIndex} of {TotalCases} - WCR: {WCR}", runID, testCase.CaseIndex, caseCount, testCase.TestResult.WCR);`

If I do a GET myindex in sense, RunID is shown as...

```auto
              "RunID": {
                "type": "long"
              }

```

In Kibana, a Discovery query of \* shows the documents and if expand one, the table view shows RunID as `636,035,691,230,479,360` and JSON view shows it as `636035691230479400`.

However, query like `fields.RunID:636035691230479400` says no results (time is set for 1 year and these are documents logged today).

Other fields that are also `long` type fields that have smaller values (like 87 for example), work just fine. `fields.UtteranceCount:87`

Only thing I can see different is the size of the number. RunID values are 18 digits long.

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [July 11, 2016, 7:55pm UTC](https://discuss.elastic.co/t/cant-query-a-long-number/55076/2 "2016-07-11T19:55:53Z")

</div>

The issue might be that Javascript's largest integer is `9007199254740991`, but Kibana actually sends the query as a string so I'm not sure. If you open the network tab of your browser devtools you should see an `msearch` request. Does this request look the way you'd expect? Is ES returning any results? What if you query Elasticsearch directly?

---

<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:** [July 6, 2017, 1:47pm UTC](https://discuss.elastic.co/t/cant-query-a-long-number/55076/3 "2017-07-06T13:47:14Z")

</div>


