# Is it possible to query for unbounded/not set range fields?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-query-for-unbounded-not-set-range-fields/149523>\
**Category:** Elasticsearch\
**Created:** [September 21, 2018, 10:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-for-unbounded-not-set-range-fields/149523 "2018-09-21T22:23:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaddison](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jaddison](https://discuss.elastic.co/u/jaddison)\
**Post date:** [September 21, 2018, 10:23pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-for-unbounded-not-set-range-fields/149523/1 "2018-09-21T22:23:25Z")

</div>

I have an `age_range` field of type `float_range`. I'm looking to excluded dual unbounded range values (both upper and lower bounds are not set - ie `null`). I'm using range queries, playing with `within`, `intersects`, and `contains`. I'm not grokking this problem.

Specifically, I want to query on a valid range, but exclude anything unbounded (ie not set).

I can't figure out if this is possible?

---

<div class="post-metadata">

**Author:** ![jaddison](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jaddison](https://discuss.elastic.co/u/jaddison)\
**Post date:** [September 27, 2018, 5:21pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-for-unbounded-not-set-range-fields/149523/2 "2018-09-27T17:21:42Z")

</div>

I can only surmise that this is not possible - should I create a Github issue for this?

---

<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:** [October 25, 2018, 5:21pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-for-unbounded-not-set-range-fields/149523/3 "2018-10-25T17:21:50Z")

</div>

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