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

ConstantScoreRangeQuery - fixes "too many clauses" exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.9, 2.0.0
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      34673

      Description

      ConstantScoreQuery wraps a filter (representing a set of documents) and returns
      a constant score for each document in the set.

      ConstantScoreRangeQuery implements a RangeQuery that works for any number of
      terms in the range. It rewrites to a ConstantScoreQuery that wraps a RangeFilter.

      Still needed:

      • unit tests (these classes have been tested and work fine in-house, but the
        current tests rely on too much application specific code)
      • code review of Weight() implementation (I'm unsure If I got all the score
        normalization stuff right)
      • explain() implementation

      NOTE: requires Java 1.4 for BitSet.nextSetBit()

        Attachments

        1. ASF.LICENSE.NOT.GRANTED--ConstantScoreQuery.java
          4 kB
          Yonik Seeley
        2. ASF.LICENSE.NOT.GRANTED--ConstantScoreRangeQuery.java
          6 kB
          Yonik Seeley
        3. ConstantScoreQuery.java
          5 kB
          Yonik Seeley
        4. ConstantScoreRangeQuery.java
          5 kB
          Yonik Seeley
        5. TestConstantScoreRangeQuery.java
          11 kB
          Hoss Man

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              yseeley@gmail.com Yonik Seeley
            • Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: