[
https://issues.apache.org/jira/browse/SOLR-17130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986959#comment-17986959
]
ASF subversion and git services commented on SOLR-17130:
--------------------------------------------------------
Commit df686ddc0cac1f01196f126732b87f6faeb645cc in solr's branch
refs/heads/main from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=df686ddc0ca ]
SOLR-17130: edismax MatchAllDocsQuery (*:*) Optimization (#2218)
> edismax MatchAllDocsQuery (*:*) Optimization
> --------------------------------------------
>
> Key: SOLR-17130
> URL: https://issues.apache.org/jira/browse/SOLR-17130
> Project: Solr
> Issue Type: Improvement
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> This unwraps the case of using edismax query parser and q=*:*. Prior to this
> change, *:* was being changed to +*:* which wraps the MatchAllDocsQuery with
> a boolean query. We can unwrap the boolean query since its not necessary if
> the MatchAllDocsQuery is the only clause.
> I found this by looking at https://issues.apache.org/jira/browse/SOLR-14765
> and wondering why when using edismax the optimizations were skipped even
> though the query was *:*. The boolean wrapped MatchAllDocsQuery means that
> some of the optimization logic is skipped -
> https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L1623
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]