java-user@lucene.apache.org
[Top] [All Lists]

Re: Grouping results by choosen field

Subject: Re: Grouping results by choosen field
From: karl wettin
Date: Sat, 18 Mar 2006 04:12:09 +0100

17 mar 2006 kl. 21.01 skrev karl wettin:


17 mar 2006 kl. 16.36 skrev Java Programmer:

My problem concerns result grouping, the best example will be Google search where you have results sorted by relevance, and also grouped by domain (they
have little indent/margin). In my project I want to get similar
functionality, without very huge CPU consumption.

Can you share any helpful hints ?

I do that. Basically I marshall the hit documents to java instances of Comparable. Then I just plain old Collections.sort(the documents as object representation).

I just made it complicated after this. Sorry. I ment to say I do well grouping fields with a comparator. If I get too many results, I only sort the top n hits.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>