Re: Periodic search in date field

2011-08-18 Thread Gora Mohanty
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

Re: Periodic search in date field

2011-08-18 Thread slaava
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

Re: Periodic search in date field

2011-08-18 Thread Erick Erickson
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. >

Re: Periodic search in date field

2011-08-17 Thread slaava
6.n3.nabble.com/Periodic-search-in-date-field-tp3260793p3260896.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Periodic search in date field

2011-08-17 Thread Gora Mohanty
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

Periodic search in date field

2011-08-16 Thread slaava
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.