# Missing Value option NEST

**URL:** <https://discuss.elastic.co/t/missing-value-option-nest/134558>\
**Category:** Elasticsearch\
**Created:** [June 5, 2018, 8:17am UTC](https://discuss.elastic.co/t/missing-value-option-nest/134558 "2018-06-05T08:17:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron.buhagiar](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@aaron.buhagiar](https://discuss.elastic.co/u/aaron.buhagiar)\
**Post date:** [June 5, 2018, 8:17am UTC](https://discuss.elastic.co/t/missing-value-option-nest/134558/1 "2018-06-05T08:17:14Z")

</div>

Hi,

I am currently trying to get data using aggregation based on a nullable date field. I am using NEST API with C#. Doing this using the low-level client it was possible to get the nullable items in a separate bucket using the missing option.

```
"aggs":{
"top_tags":{
  "date_range":{
    "field" : "expiryDate",
    "missing": "1899-01-01",
    "ranges":[
      {
        "key": "MissingExpiry",
        "to": "2000-01-01"
      }

```

In the NEST API this seems to be missing. In the sense that to get the nullable values a separate aggregation has to be used. Is the feature supported or is it typical to do something else in these situations.

---

<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 3, 2018, 8:17am UTC](https://discuss.elastic.co/t/missing-value-option-nest/134558/2 "2018-07-03T08:17:15Z")

</div>

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