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

Add BooleanClause.Occur.FILTER

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • None
    • None
    • New

    Description

      Now that we have weight-level control of whether scoring is needed or not, we could add a new clause type to BooleanQuery. It would behave like MUST exept that it would not participate in scoring.

      Why do we need it given that we already have FilteredQuery? The idea is that by having a single query that performs conjunctions, we could potentially take better decisions. It's not ready to replace FilteredQuery yet as FilteredQuery has handling of random-access filters that BooleanQuery doesn't, but it's a first step towards that direction and eventually FilteredQuery would just rewrite to a BooleanQuery.

      I've been calling this new clause type FILTER so far, but feel free to propose a better name.

      Attachments

        1. LUCENE-6227.patch
          30 kB
          Adrien Grand
        2. LUCENE-6227.patch
          109 kB
          Adrien Grand
        3. LUCENE-6227.patch
          27 kB
          Adrien Grand
        4. LUCENE-6227.patch
          24 kB
          Adrien Grand
        5. LUCENE-6227.patch
          24 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: