[ https://issues.apache.org/jira/browse/LUCENE-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17356685#comment-17356685 ]
ASF subversion and git services commented on LUCENE-9970: --------------------------------------------------------- Commit efb7b2a5e8c1bdc19dfd65f7095f70a142343472 in lucene's branch refs/heads/main from Chris M. Hostetter [ https://gitbox.apache.org/repos/asf?p=lucene.git;h=efb7b2a ] LUCENE-9970: Add TooManyNestedClauses extends TooManyClauses so that IndexSearcher.rewrite can distinguish hos maxClauseCount is exceeded This is an extension of the work done in LUCENE-8811 which added the two types of checks > provide apps details about why TooManyClauses was thrown > -------------------------------------------------------- > > Key: LUCENE-9970 > URL: https://issues.apache.org/jira/browse/LUCENE-9970 > Project: Lucene - Core > Issue Type: Task > Reporter: Chris M. Hostetter > Assignee: Chris M. Hostetter > Priority: Major > Attachments: LUCENE-9970.patch > > > Historically, if {{TooManyClauses}} was thrown it meant exactly one thing: > That a QueryX Builder (typically BooleanQuery, but there are a few others in > sandbox) was not going to allow it's caller to add a clause because that > QueryX object already had the maxClauseCount in _direct_ children. > LUCENE-8811 added an additional "reason" why {{TooManyClauses}} may be thrown > starting in 9.0: IndexSearcher may now throw this exception if the > (rewritten) Query being executed has a _cumulative_ number of clauses – > across the entire structure of _nested_ Query objects – that exceeds the > maxClauseCount. > ---- > I think it would be helpful to users if it was possible to tell from the > {{TooManyClauses}} exception how the maxClauseCount was exceeded (because of > the total number of direct children during rewrite, or cumulatively across > the entire nested structure) w/o needing to inspect the stack frames to see > if the thrower a rewrite method, or a QueryVisitor method. > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org