lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Wang <john.w...@gmail.com>
Subject FieldCache and Sort
Date Wed, 01 Jun 2005 19:08:45 GMT
Hi:

   In the current Lucene sorting implementation, FieldCache is used to
retrieve 2 arrays, the lookup array and the order array. The order
array at load time stores the position of the term in the lookup
array. The lookup array is already sorted because it is read in from
the index.

   My question is that since the order array contains all the
information on the order of the terms, why do we keep it around in
memory? Can we implement a SortComparator that is more memory
efficient?


Just and idea

Thanks

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message