Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DiegoPino opened this issue Jan 25, 2024 · 0 comments
Assignees
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

Comments

@DiegoPino
Copy link
Member

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.

@DiegoPino DiegoPino self-assigned this Jan 25, 2024
@DiegoPino DiegoPino added this to the 1.3.0 milestone Jan 25, 2024
@DiegoPino DiegoPino added bug Something isn't working enhancement New feature or request Working Group's 💜 Imagined, curated and loved by the Working Group Drupal 9 Solr A dark star collapsing Drupal 10 9 + 2 = 10 labels Jan 25, 2024
@DiegoPino DiegoPino added the Never to be closed Learn & keep around label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant