I am very sorry, but i dont understand at all what you mean in terms of Lucene api. Could you drop a few lines of concrete code to help me understand? I'm quite new to lucene.

Thanks!



You sort only "collection", wich are 300.

first step, you search query with lucene
Map<Integer, Collection> collecs wich come from any persisted stuff.
Collection implement Sortable.
Set bags = new HashSet<Collection>();
iterate over hit
bags.add(collecs.get(hit.getTheIdOfTheCollection));

you've got a bag with at most 300 elements
you can sort it with strange rules.

M.

Antoine Baudoux a écrit :
The problem is that i want lucene to do the sorting, because the query
qould return thousands of results, and I'm displaying documents one
page at a time.


On 15 Jun 2007, at 17:42, Mathieu Lecarme wrote:

First step is to feed a Set with "collection"
Second step is to sort it.

With a sortedSet, you can do that, isnt'it?

M.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to