[
https://issues.apache.org/jira/browse/LUCENE-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12836732#action_12836732
]
Michael McCandless commented on LUCENE-2275:
--------------------------------------------
Patch looks good, thanks Shai -- I'll commit shortly.
> DocumentsWriter.applyDeletes should not create TermDocs or IndexSearcher if
> not needed
> --------------------------------------------------------------------------------------
>
> Key: LUCENE-2275
> URL: https://issues.apache.org/jira/browse/LUCENE-2275
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Shai Erera
> Assignee: Michael McCandless
> Fix For: 3.1
>
> Attachments: LUCENE-2275.patch
>
>
> DocumentsWriter.applyDeletes(IndexReader, int) always creates TermDocs and
> IndexSearcher, even if there were no deletes by Term or by Query. The
> attached patch wraps those creations w/ checks on whether there were any
> deletes by these two. Additionally, the searcher wasn't closed in a finally
> block, so I fixed that as well.
> I'll attach a patch shortly.
--
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]