lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andi rexha <>
Subject Cache Field Lucene 3.6.0
Date Tue, 30 Jul 2013 14:09:19 GMT
Hi, I have a stored and tokenized field, and I want to cache all the field values. 

I have one document in the index, with the  "field.value"  =>   "hello world"   and with
tokens   => "hello", "world". 
I try to extract the fields content : 
String [] cachedFields  =  FieldCache.DEFAULT.getStrings(reader, field.getName());

The content of the cachedFields array is ["hello"]. 

When I try to index other documents, I get also "null" as the value of the field.

Can somebody help me with that?

Thank you in advance!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message