On 3/22/11 8:40 AM, shrinath.m wrote:
On Tue, Mar 22, 2011 at 12:39 PM, Anshum-2 [via Lucene]<
ml-node+2713899-1210341880-376...@n3.nabble.com>  wrote:

No as of now, there's no way to do so.

Thank you Anshum-2,
how do you propose I do this ?
I have thought of a way like this :
- first get the doc based on a unique id into a HashMap,
- replace the field which I want to update
- call update on the index with the map.

Is there any efficient way of doing this ?

are you looking for something like

http://hrycan.com/2009/11/26/updating-document-fields-in-lucene/

?

If so, please be aware that IIUC this only works for stored fields, but for fields which used StringReader (readerValue) this does not seem to work, but I am not certain and are still trying to figure this out to
make sure.

HTH

Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to