lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: why Term variable text can not be interned?
Date Thu, 08 Nov 2007 10:55:57 GMT
On Nov 8, 2007 12:44 AM, Chris Lu <chris.lu@gmail.com> wrote:
> In Term object, there are variables "field" and "text".
> My question is, why variable "text" can not be intern() ?
>
> Wouldn't it save some memory, especially in the FieldCache?

The FieldCache already stores only one string per term, regardless of
how many documents contain that term.

-Yonik

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