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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]