lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Update an existing index
Date Wed, 08 Nov 2006 13:34:12 GMT
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 <mbraun@uni-hd.de> 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message