Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by Bruce Adams for Discovery does not allow nullable date field to be indexed

What you can do (well, assuming you have enough control over the JSON), is omit the date field for documents which have no date. For example these two documents will work together in a single Discovery collection.

{ "title": "Document With Date", "text": "Discovery detects date types to support range queries, sorting and more.", "updated": "2018-04-26T10:11:12Z" }

{ "title": "Undated Document", "text": "Discovery has no trouble with fields that appear in some documents and not others." }


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>