lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ensdorf Ken <Ensd...@zoominfo.com>
Subject RE: Sorting dates with reduced precision
Date Wed, 22 Apr 2009 13:20:26 GMT
> Yes, but dates are fairly spesific, say 06:45 Nov. 2 , 2009. What if I
> want to say "Sort so that withing entries for Nov. 2 , you sort by
> relevance" for example?
>

Append "/DAY" to the date value you index, for example

"1995-12-31T23:59:59Z/DAY" will yield "1995-12-31"

So that all documents with the same date will then be sorted by relevance or whatever you
specify as the next criteria in the "sort" parameter.




Mime
View raw message