Re: Pagination with MultiSearcher

2009-03-19 Thread Amin Mohammed-Coleman
Hi Please ignore the problem I raised. User error ! Sorry Amin On 19 Mar 2009, at 09:41, Amin Mohammed-Coleman wrote: Hi I've implemented the solution using the PageHitCounter from the link and I have noticed that in certain instances I get a 0 score for queries like "document OR as

Re: Pagination with MultiSearcher

2009-03-19 Thread Amin Mohammed-Coleman
Hi I've implemented the solution using the PageHitCounter from the link and I have noticed that in certain instances I get a 0 score for queries like "document OR aspectj". has anyone else experienced this? Cheers Amin On Mon, Mar 16, 2009 at 8:07 PM, Amin Mohammed-Coleman wrote: > Hi > I've c

Re: Pagination with MultiSearcher

2009-03-16 Thread Amin Mohammed-Coleman
Hi I've come across the PageHitCollector class from the: http://mail-archives.apache.org/mod_mbox/lucene-java-user/200707.mbox/%3c070320071521.6119.468a6964000b3e7517e72205884484070a9c0701030...@comcast.net%3e I'm looking at using this in the multisearcher class, and do: search(query,filter,

Re: Pagination with MultiSearcher

2009-03-16 Thread Amin Mohammed-Coleman
Hi Erick I've seen the following: TopDocCollector collector = new TopDocCollector(hitsPerPage) and then pass the collector to the seacher. But I'm not sure how I increment the hitsPerPage. Also how do I get the total results returned? In relation to sorting I could basically use Collections.so

Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
Basically, the FileSortedHitQueue is just a sorting mechanism you implement yourself. But I can't help but think that there's an easier way, although I'll have to admit I haven't used MultiSearcher enough to offer much guidance. That'll teach me to send something off on Sunday that I don't real

Re: Pagination with MultiSearcher

2009-03-15 Thread Amin Mohammed-Coleman
HI Erick Thanks for your reply, glad to see I'm not the only person working/developing on a Sunday! I'm not sure how the FieldSortedHitQueue works and how it can be applied to the search method exposed by MultiSearcher. Would it be possible to clarify abit more or even point to some reference doc

Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
You could do something with FieldSortedHitQueue as a post-search sort, but I wonder if this would work for you... public TopFieldDocs *search*(Query

Pagination with MultiSearcher

2009-03-14 Thread Amin Mohammed-Coleman
Hi I'm looking at trying to implement pagination for my search project. I've been google-ing for a solution. So far no luck. I've seen implementations of HitCollector which looks promising, however my search method has to completely change. For example I'm currently using the following: