SAP Knowledge Base Article - Preview

3265248 - Error: "Query contains too many nested clauses; maxClauseCount is set to..." in Solr

Symptom

While performing searches one gets no results and in the logs there are similar errors to below one depending on the Solr version.

For Solr version up to 8:

ERROR (qtpxxxxxxxxx-xx) [c:master_EMEA_Product_default s:shard1 r:core_node1 x:master_INDEXNAME_Product_default_shard1_replica_n1] o.a.s.h.RequestHandlerBase org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024 => org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024

Starting with solr version 9:

ERROR (qtpxxxxxxxxx-xx) [c:master_EMEA_Product_default s:shard1 r:core_node1 x:master_INDEXNAME_Product_default_shard1_replica_n1] o.a.s.s.HttpSolrCall org.apache.lucene.search.IndexSearcher$TooManyNestedClauses: Query contains too many nested clauses; maxClauseCount is set to 1024 

In Solr Admin Console there are also following errors trackable:

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

  • SAP Commerce
  • SAP Commerce Cloud

Product

SAP Commerce Cloud all versions ; SAP Commerce all versions

Keywords

ccv2, hybris, performance, dynatrace, dt, 500, opensearch, kibana, index, collection , KBA , CEC-SCC-COM-SRC-SER , Search and Navigation , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.