Re: Restricting the number of docs per search field

2006-02-28 Thread emerson cargnin
Yes, the bottleneck is defenitely in lucene. The index is quite big, three files with more than 1 giga. We are querying for html extracts, with the id together, but it can return almost 50 extracts for each ID, and just the first 2 will be used. We could as well do 10 queries(that's the max number

Re: Restricting the number of docs per search field

2006-02-28 Thread Grant Ingersoll
Do you want the first 2 docs, regardless of score, with the same property or do you want the 2 highest scoring docs with the same property? You might look at the HitCollector search method on IndexSearcher. Btw, the Filter that is required can be null. The HitCollector interface allows you t

Re: Restricting the number of docs per search field

2006-02-28 Thread emerson cargnin
does anyone knows a solution for that? I know theres a method that returns a TopDoc, but it needs a filter, and in my case, Ill need the first 2 of each doc with the same value in a given property. On 27/02/06, emerson cargnin <[EMAIL PROTECTED]> wrote: > > Hi all > > Due a performance problem, I