That padding is just fine, you're effectively indexing
everything exactly at midnight.

Best,
Erick

On Sun, Jun 5, 2016 at 12:48 PM, Steven White <swhite4...@gmail.com> wrote:
> Hi everyone,
>
> I'm using "solr.DateRangeField" data type to index my dates data and based
> on [1] the format of the dates data is "YYYY-MM-DDThh:mm:ssZ".
>
> In my case, I have no need to search on time, just dates.  I started by
> indexing my dates data as "2016-06-01" but Solr threw an exception.  I then
> changed my code to index the dates data as: "2016-06-01T00:00:00Z" and now
> it works.
>
> I have tested this new format and all is well so far, however I'm not sure
> if the way I have done the padding is valid.  So, my question to the Solr
> community is this: Is the format that I'm using correct (padding with "00")
> or is there some other format I should have used that is better and more
> optimal for my use case?
>
> Thanks in advanced.
>
> Steve
>
> [1] https://cwiki.apache.org/confluence/display/solr/Working+with+Dates

Reply via email to