RE: Paging with Lucene

2011-01-21 Thread Uwe Schindler
e.apache.org > Subject: AW: Paging with Lucene > > The problem is, that due to the "filtering" AFTER having searched the index, > we don't know how many TopDocs to read in order have "enough" for page > x. > > Does lucene's search allow injecting kind

Re: Paging with Lucene

2011-01-21 Thread Ian Lea
> The problem is, that due to the "filtering" AFTER having searched the index, > we don't know how many TopDocs to read in order have "enough" for page x. Think of a number and double it? Unless the number get really high lucene is generally plenty fast enough. Or read n and if, after filtering

AW: Paging with Lucene

2011-01-21 Thread Clemens Wyss
sprüngliche Nachricht- > Von: Ian Lea [mailto:ian@gmail.com] > Gesendet: Freitag, 21. Januar 2011 11:10 > An: java-user@lucene.apache.org > Betreff: Re: Paging with Lucene > > The standard recommendation for paging is to re-execute the search for > second and subsequent pages an

Re: Paging with Lucene

2011-01-21 Thread Ian Lea
The standard recommendation for paging is to re-execute the search for second and subsequent pages and return the second or subsequent chunk of hits. Would that not work in your case? An alternative is to read and cache hits from the initial search but that is generally more complex. -- Ian. O

Paging with Lucene

2011-01-19 Thread Clemens Wyss
(thanks fort he many answers to my initial lucene question "Best practices for multiple languages?") We shall be confronted with the followong problem: due to the very dynamic access rules on our content, we shall not be able to formulate these in/as Filter(s). Hence we need to first search and