[ 
https://issues.apache.org/jira/browse/SOLR-17130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986971#comment-17986971
 ] 

ASF subversion and git services commented on SOLR-17130:
--------------------------------------------------------

Commit 2e9031281f9aabc64cae82cc6b859fc51b25df2f in solr's branch 
refs/heads/branch_9x from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=2e9031281f9 ]

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
>             Fix For: 9.9
>
>          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: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to