hui wrote: > If the document id is going to be changed, is it possible to define an > interface so the user could provide other implementation to replace the > default one? For example, the document unique timestamp or other fields as > long as they are long could be used. I don't think that would be a good idea. Lucene's index format requires document ids to increase as documents are added, and things are *much* more efficient when the numbering is dense. > In this way, we can easily get another > sorting option rather than the default score sorting. Still not sure whether > it is a good idea or not though. There is good result sorting support in the latest CVS that will be in 1.4. Doug --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org