[ 
https://issues.apache.org/jira/browse/SOLR-17130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SOLR-17130:
----------------------------------
    Labels: pull-request-available  (was: )

> 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: 50m
>  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