Pagination and Sorting

2009-10-01 Thread Christian Robert
Hello everybody, I'm looking at quite an interesting challenge right now, so I hope that somebody out there will be able to assist me. What I'm trying to do is returning search results both sorted and paginated. So far I haven't been able to come up with a working solution. Pagination without so

Re: Pagination and Sorting

2009-10-01 Thread Christian Robert
Uwe, > You are using TopDocs incorrectly. Normally you use *not* Integer.MAX_VALUE, > as the upper bound of your pagination window as numer of documents. So if > user wants to display documents 90 to 100, just set the number to 100 docs. > If the user then goes to docs 100 to 110, just reexecute t

Re: Pagination and Sorting

2009-10-01 Thread Christian Robert
Anshum, > You could get the hits in a collector and pass the sort to the > collector as it would be the collect function that handles the > sorting. > > searcherObject.search(query,collector); > > Hope that gives you some headway. :) Not quite (yet?) ;-) What do you mean by passing the Sort t