esmero / archipelago-deployment-live

A Cloud / Local production ready Archipelago Deployment using Docker / Kubernetes
GNU General Public License v3.0
3 stars 13 forks source link

Make maxClauseCount larger number to deal with how Drupal Queries _und and _language specific fields #125

Open DiegoPino opened 9 months ago

DiegoPino commented 9 months ago

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 clauses

Solr allows to bump that number. Still in production I would not recommend to simply sent to all Full text fields every word.