Make maxClauseCount larger number to deal with how Drupal Queries _und and _language specific fields #125
Labels
bug
Something isn't working
Drupal 9
Drupal 10
9 + 2 = 10
enhancement
New feature or request
Never to be closed
Learn & keep around
Solr
A dark star collapsing
Working Group's 💜
Imagined, curated and loved by the Working Group
Milestone
What?
If you have many Full text fields and are using a View that searches for "multiple words" there are changes (like after 5 years, never seen that before) you will hit
org.apache.lucene.search.IndexSearcher$TooManyNestedClauses: Query contains too many nested clauses; maxClauseCount is set to 1024 => org.apache.lucene.search.IndexSearcher$TooManyNestedClauses: Query contains too many nested clauses; maxClauseCount is set to 1024
The reason is Drupal will split your phrase by spaces, and query each word against every field. But also use the language specific and the
_und_
fields Imagine the combination == larger than 1024 boolean clausesSolr allows to bump that number. Still in production I would not recommend to simply sent to all Full text fields every word.
The text was updated successfully, but these errors were encountered: