lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <>
Subject Re: How to order search results by Field value?
Date Fri, 26 Mar 2004 07:20:10 GMT
Erik Hatcher writes:
> Why not do the unique sequential number replacement at index time 
> rather than query time?
how would you do that? This requires to know the ids that will be added
in future.
Let's say you start with strings 'a' and 'b'. Later you add a document
with 'aa'. How do you know that you should make 'a' 1 and 'b' 3 to be
prepared for 'aa'?

To me Erics suggestion makes sense.
The problem might be however: you have to sort all values, while keeping
the strings means that you sort only the hits.
And you should be aware that you have to rebuild the array each time the
index changes.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message