Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-18751

PermittedSpacesScope may decrease the BooleanQuery maxClauseCount

    XMLWordPrintable

Details

    Description

      PermittedSpacesQueryMapper contains this piece of code:

      final int requiredClauseCount = Math.max(permittedSpaces.size(), 1024);
      BooleanQuery.setMaxClauseCount(Math.max(requiredClauseCount, BooleanQuery.getMaxClauseCount()));
      

      However PermittedSpacesScope only has

      BooleanQuery.setMaxClauseCount(Math.max(allSpaces.size() - visibleSpaces.size() + 100, 1024));
      

      This may cause the following error:

      [search.v2.lucene.LuceneSearcherImpl] search Error encounterd in lucene search: maxClauseCount is set to 1024
      

      Attachments

        Issue Links

          Activity

            People

              bnguyen Brian Nguyen (Inactive)
              bnguyen Brian Nguyen (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: