Quantcast
Channel: Discovery does not allow nullable date field to be indexed - Stack Overflow
Viewing all articles
Browse latest Browse all 2

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

$
0
0

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 all articles
Browse latest Browse all 2

Trending Articles



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