Hi Jurriën, Zend_Search_Lucene doesn't give possibility of narrowing down search.
But it may be changed in the nearest future (that's a part of Zend_Search_Lucene performance improvement tasks I'm working on right now :)) So I'm extremely interested to tests result of these improvements with your application ;) On the other hands, that may not give expected result if the original date-range query is slow enough. You could try to use a set of indices - one index for month or quarter and perform several searches to cover whole time period. Only two subsearches will need date-range subquery. With best regards, Alexander Veremyev. > -----Original Message----- > From: Jurriën Stutterheim [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 18, 2008 12:51 PM > To: Zend Framework - General > Subject: Re: [fw-general] [Lucene] Narrowing down search > > * bump * > > Anyone? > > > On Oct 15, 2008, at 14:36 , Jurriën Stutterheim wrote: > > > Hi all, > > > > > > In my search index with roughly 200k documents I need to be able to > > search on document dates. I've already got a nice ranged query > > working and it returns the right results. In addition to the date > > fields the search form of course also provides a text field so the > > user can search for some keywords. > > > > My main problem now is that the date-range query is incredibly slow > > when it's spread across more than a few years. One of the solutions > > I came up with was to search for the keywords first, and then narrow > > those results down by using a date-range query. > > > > Is this possible? > > > > > > - Jurriën
