On Sat, May 1, 2010 at 8:23 PM, Koji Sekiguchi <k...@r.email.ne.jp> wrote: > Yonik Seeley wrote: >> Values are not interned, but in a single field cache entry (String[]) >> the same String object is used for all docs with that same value. > > Yeah, you are right. Because I could see the arbitrary two Strings that have > same value were identical (== is true) in String[] gotten by getStrings() > but > I coudn't see explicit intern() for them, I asked. Can you elaborate who > done it?
FieldCacheImpl:675 on trunk. For every term, a string value in constructed... then TermDocs (now DocsEnum in trunk) steps over every doc with that value and sets the same value. -Yonik Apache Lucene Eurocon 2010 18-21 May 2010 | Prague >> But... I think StringIndex is more commonly used in both Lucene and >> Solr than String[] (sorting, faceting, etc) so double check that it's >> not StringIndex you should be looking at. >> >> > > Yes, I think StringIndex is better than String[] for my requirement in terms > of memory consumption as well (an extreme case, male/female field etc.). > > Thank you, > > Koji > > -- > http://www.rondhuit.com/en/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org