Martin's got it right. You might get some mileage out of the IndexModifier
class if you have to do insertions and deletions, but really read the
documentation.

Also note: Any changes you make to an index are invisible to a searcher
that's already open. You have to close/reopen that searcher to see the
effects of index modifications (either insertions or deletions).

Erick

On 11/8/06, Martin Braun <[EMAIL PROTECTED]> wrote:

WATHELET Thomas schrieb:
> how to update a field in lucene?
>
I think you'll have to delete the whole doc and add the doc with the new
field to the index...

hth,
martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to