# Unable to get gte and lte from elastic Java API in range query

**URL:** <https://discuss.elastic.co/t/unable-to-get-gte-and-lte-from-elastic-java-api-in-range-query/257781>\
**Category:** Elasticsearch\
**Created:** [December 6, 2020, 3:53pm UTC](https://discuss.elastic.co/t/unable-to-get-gte-and-lte-from-elastic-java-api-in-range-query/257781 "2020-12-06T15:53:20Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 8, 2020, 12:31pm UTC](https://discuss.elastic.co/t/unable-to-get-gte-and-lte-from-elastic-java-api-in-range-query/257781/18 "2020-12-08T12:31:21Z")

</div>

There is no chance that `2888966725` matches something like `0:0:0:0:0:ffff:4131:6d83`.

That's why it's failing.

Again, as Christian said and as I asked previously,

> Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

> **A full reproduction script is something anyone can copy and paste in Kibana dev console** , click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. **It will also most likely help to get a faster answer**.

It should include mappings, etc...

And please format the code, and only the code. Not your questions, your text.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-get-gte-and-lte-from-elastic-java-api-in-range-query/257781)._
