We are trying to add support for dates in tantivy, and we need your help on the API.
What should be the type user in the API when the user sets or get the value associated to
the date field in the document.
-
DateTime
in thechrono
crate seems perfect, but this is not part of the standard library and exposing an external library does not seem like a great idea, as it could lead to a dependency hell. I guess could re-export thechrono
crate astantivy::chrono
? -
string
in ISO_8601 could be ok... but it is a string.
What is the right way to do things here?