modify existing non-indexed field
0 answers - 716 bytes -

Yes, you can do something like that, but of course you have to delete the old Document, and add the new, modified oneto the index, too. I do something like that on one of the Simpy.com indices and it works nicely.
Message
From: dan2000 <liudan (AT) ntlworld (DOT) com>
To: java-user (AT) lucene (DOT) apache.org
Sent: Friday, July 7, 2006 6:54:18 AM
Subject: modify existing non-indexed field
Is it possible to modify a stored field but not indexed? for example, if I
have a field like this:
new Field("address", address, Field.Store.YES, Field.Index.N)
and I want to modify it like this:
hits.doc(i).getField("address").set("11 Diana Street");
Is it possible?