Kevin Risden created SOLR-17130:
-----------------------------------
Summary: edismax MatchAllDocsQuery (*:*) Optimization
Key: SOLR-17130
URL: https://issues.apache.org/jira/browse/SOLR-17130
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 8.11.2
Reporter: Kevin Risden
Assignee: Kevin Risden
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]