On Wed, Aug 17, 2011 at 1:07 PM, slaava wrote:
> Thanks for quick reply!
>
> Yes, this is my backup solution. But I prefer some one-query approach -
> there could be many results so I want use SolrQuery.start() and
> SolrQuery.rows() and show persons in table with paging.
Was suggesting just one
04 -> year_mod_3 = 0
2005 -> year_mod_3 = 1
...
Current year: 2011 -> 2011 mod 3 = 1
Solr query: year_mod_3:1
Results: 1999, 2002, 2005, ...
Pretty, simple and all with one solr query :)
--
View this message in context:
http://lucene.472066.n3.nabble.com/Periodic-search-in-date-fie
be great!
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Periodic-search-in-date-field-tp3260793p3260896.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
6.n3.nabble.com/Periodic-search-in-date-field-tp3260793p3260896.html
Sent from the Solr - User mailing list archive at Nabble.com.
On Wed, Aug 17, 2011 at 12:01 PM, slaava wrote:
[...]
> My first idea was to index date in mmdd format (20110817) and use
> modulo:
> 1 year: indexed_date % 1 = 0817
> 5 year: indexed_date % 5 = 10817
> 10 year: indexed_date % 10 = 10817
>
> but I didn't found something like modulo
sage in context:
http://lucene.472066.n3.nabble.com/Periodic-search-in-date-field-tp3260793p3260793.html
Sent from the Solr - User mailing list archive at Nabble.com.