Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3990

Enable specifying the max clause limit in BooleanClause

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.27, 1.2.11, 1.3.16, 1.4
    • lucene
    • None

    Description

      BooleanQuery by default has a limit for 1024 clauses. This is a fair limit to have. However in certain cases it would be desirable to adjust this limit so we should provide support for that

      This limit would be hit if a JCR Query has > 1024 number of OR clauses and following exception would be seen

      Uncaught Throwable
      org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
      

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: