[
https://issues.apache.org/jira/browse/LUCENE-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12555226
]
Michael McCandless commented on LUCENE-1112:
--------------------------------------------
{quote}
* In the test, why is the position increment of 'another' 3,
I think it should be 2?
{quote}
It's not "position increment" that's 3, it's "position" that's 3? And I think
it should be 3 because this field is "abc xyz <massive-term> another term", so
another should have position 3 since we count <massive-term> as one position?
{quote}
* assertEquals("failed document should not be in the index",2,reader.numDocs());
should be "document with skipped token should be in the index"?
{quote}
Woops, yes, I'll fix the string.
{quote}
I believe that "positon++" in DocumentsWriter is not required because
invertField() already incremented the position before calling addPosition()?
(my fault, I suggested to still increment the position...)
{quote}
Well, invertField increments by positionIncrement minus 1, then addPosition
increments by 1 (this mirrors how DocumentWriter used to work).
> Document is partially indexed on an unhandled exception
> -------------------------------------------------------
>
> Key: LUCENE-1112
> URL: https://issues.apache.org/jira/browse/LUCENE-1112
> Project: Lucene - Java
> Issue Type: Bug
> Components: Index
> Affects Versions: 2.3
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 2.3
>
> Attachments: lucene-1112-test.patch, LUCENE-1112.patch
>
>
> With LUCENE-843, it's now possible for a subset of a document's
> fields/terms to be indexed or stored when an exception is hit. This
> was not the case in the past (it was "all or none").
> I plan to make it "all or none" again by immediately marking a
> document as deleted if any exception is hit while indexing it.
> Discussion leading up to this:
> http://www.gossamer-threads.com/lists/lucene/java-dev/56103
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]