lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Problem when updating a document in an index
Date Thu, 07 Feb 2002 10:00:07 GMT
1.01?  The latest release is 1.2-rc3.  I suggest you try your
code with the latest release and if it still doesn't work
post to this list the shortest possible program that
demonstrates the problem.


Sheldon Shi wrote:
> When I tried to update a single document in an index, I deleted
> it first and then added it to the index again. But when I do
> search both the old version and the new version show up. When
> I look at the index files, the deletable contains the files
> that are supposedly to be deleted, but somehow I could still search
> them. IndexReader is closed after the deletion, and a new
> IndexWriter is opened for the addition. Optimize() is called
> after adding the document. I tried to open a new IndexWriter
> after deletion and call its optimize() (then close()) before
> opening another IndexWriter for addition. The problem did not go away.
> I am using Lucene1.01.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message