lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: FieldCache and Sort
Date Mon, 06 Jun 2005 14:24:10 GMT
Why do we keep the lookup array around?
The actual field value is needed to sort results from multiple
searchers (multisearcher).

-Yonik

On 6/1/05, John Wang <john.wang@gmail.com> wrote:
> 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
> 
>

---------------------------------------------------------------------
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