On 8/16/2018 9:20 AM, Christopher Schultz wrote:
> Hmm. I could have sworn the documentation I read in the past (maybe as
> long as 3-4 months ago) indicated that date+timestamp was necessary.
> Maybe that was just for the index, while the searches can be partial.

DateRangeField was introduced four years ago, first available in Solr
version 5.0.

https://issues.apache.org/jira/browse/SOLR-6103

> As for i18n, is there a way to have the query analyzer convert strings
> like "mm/dd/yyyy" into "yyyy-mm-dd"?

Solr doesn't accept dates in mm/dd/yyyy syntax, and can't convert that
for you.  The ISO standard that *is* accepted is the more logical
yyyy-mm-dd.  It's generally best if you don't use a freeform text field
for dates ... provide a full interface for choosing specific dates so
that user input is predictable.  Probably something like this:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

Looking at the documentation, I don't see any way to search for just a
day without the year.  That could be a useful enhancement for
birthday-related use cases, but I have no idea how hard it would be to
write.

Thanks,
Shawn

Reply via email to