Stamatis Zampetakis created LUCENE-9299:
-------------------------------------------

             Summary: ClausesCheckVisitor fails to throw TooManyClauses 
exception when the clauses in a query exceeds the limit by 1
                 Key: LUCENE-9299
                 URL: https://issues.apache.org/jira/browse/LUCENE-9299
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: master (9.0)
            Reporter: Stamatis Zampetakis


The visitor that was introduced in LUCENE-8811 (obtained by 
IndexSearcher#getNumClausesCheckVisitor) that checks that the number of clauses 
in query does not exceed a certain limit (defined by  
org.apache.lucene.search.IndexSearcher#setMaxClauseCount) misses the case where 
the clauses/terms in the query exceed the limit by one.   



--
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

Reply via email to