# Search\_after with dates that can have undefined values

**URL:** <https://discuss.elastic.co/t/search-after-with-dates-that-can-have-undefined-values/121261>\
**Category:** Elasticsearch\
**Created:** [February 23, 2018, 5:45pm UTC](https://discuss.elastic.co/t/search-after-with-dates-that-can-have-undefined-values/121261 "2018-02-23T17:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taher.galal](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@taher.galal](https://discuss.elastic.co/u/taher.galal)\
**Post date:** [February 23, 2018, 5:45pm UTC](https://discuss.elastic.co/t/search-after-with-dates-that-can-have-undefined-values/121261/1 "2018-02-23T17:45:21Z")

</div>

So I am using the search\_after option to obtain a pagination of documents. I am using the values in the sort array before as input to the search after. The sort value is a date which could be undefined for some documents. The value returned in the sort fails to be parse with BIG\_INTEGER issue. Am I doing something wrong?

---

<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 23, 2018, 5:45pm UTC](https://discuss.elastic.co/t/search-after-with-dates-that-can-have-undefined-values/121261/2 "2018-03-23T17:45:25Z")

</div>

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