[
https://issues.apache.org/jira/browse/LUCENE-6379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388497#comment-14388497
]
Adrien Grand commented on LUCENE-6379:
--------------------------------------
One minor paranoid nitpick: I just noticed MatchAllDocsQuery is not final and
the code checks instanceof. So maybe we should make MatchAllDocsQuery final or
check that query.getClass() == MatchAllDocsQuery.class (or both).
> IndexWriter's delete-by-query should optimize/specialize MatchAllDocsQuery
> --------------------------------------------------------------------------
>
> Key: LUCENE-6379
> URL: https://issues.apache.org/jira/browse/LUCENE-6379
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: Trunk, 5.1
>
> Attachments: LUCENE-6379.patch
>
>
> We can short-circuit this to just IW.deleteAll (Solr already does so I
> think). This also has the nice side effect of clearing Lucene's low-schema
> (FieldInfos).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]