Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7880

Make boolean query clause limit configurable per-query

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      As we know, the magic BooleanQuery.maxClauseCount has bitten many people over time.
      It's also a static, which really hurts multi-tenancy (i.e. we can't have different settings for different users, clients, or use-cases).

      If we want to keep this static as a default, then at least we should allow it to be overridden on a per-query basis when we know it is the desired behavior and not a bug.

      Perhaps the simplest way to achieve this would be a setter on BooleanQuery.Builder that configures the limit for that instance only?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yseeley@gmail.com Yonik Seeley
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: