lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: question about modifying indexed Documents
Date Fri, 22 Aug 2008 14:52:21 GMT
Not that I know of. But if you're storing Lucene doc IDs as part of
existing search results, you're playing with fire anyway. Unless there's
a compelling reason to avoid it, you're usually better off storing your
own unique doc ID in a different field and using that because you can
guarantee that it's invariant.


On Fri, Aug 22, 2008 at 10:36 AM, Carlos del Cacho <>wrote:

> Hello,
> I'd like to modify a Field in an already indexed Document. The only way so
> far that I have found is to delete the document through an IndexReader and
> add a new one with an IndexWriter. This has the undesirable property that
> it
> alters existing search results for a given keyword. Is there a better way
> to
> do this?
> Thanks,
> Carlos

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