robert engels wrote:
Under this new scenario, what is the result of this:

I open the IndexWriter.

I delete all documents with Term A.
I add a new document with Term A.
I delete all documents with Term A.

Is the new document correctly removed?

This is actually a question about the proposed patch for LUCENE-565
"supporting deleteDocuments in IndexWriter".  Remember: this is
separate from "commit on close".  We can do either one first.  Anyway,
the answer to your question is "yes" for the most recent patch.  See:

    http://issues.apache.org/jira/browse/LUCENE-565#action_12459506

Solr has similar careful logic to handle this interleaved add/delete
case.

Also, do we have any documentation that describes the new file format/naming conventions similar to the original Lucene file format documentation?
>
Is someone going to do this before the code changes? Seems like it would be easier to review than scanning the code or 1000 emails.

Actually there index file format is unchanged.

Let's call the new approach "commit on close".  The idea (Doug's
suggestion from yesterday) is very simple: an IndexWriter should never
write a new segments_N file until close() is called.  So a reader
never sees anything the writer is doing until the writer is closed.

Mike

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

Reply via email to