Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas CLI
Created by Guest
Created on Aug 27, 2024

Ability to set maxClauseCount for cli image

We have a query that needs to filter by a long list of ids. I get the error: “Query contains too many nested clauses; maxClauseCount is set to 1024” This error does not happen in M10+ cluster because the lucene maxClauseCount seems to be higher there. It would be great to be able to set the maxClauseCount of lucene with an env var so we can test this.
  • Guest
    Dec 12, 2024
    I am developing a web app that includes Atlas search and putting together a query as 5 words treated as ANDs results in the "Query contains too many nested clauses; maxClauseCount is set to 1024" error. I have built the $search with "compound" and a "must" for each word, as I have read as best practices. For my application this is pretty basic use and it is disappointing to run into such a limitation for local development environments