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

Add DocValuesNumbersQuery, like DocValuesTermsQuery but works only with long values

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3, 6.0
    • None
    • None
    • New

    Description

      This query accepts any document where any of the provided set of longs
      was indexed into the specified field as a numeric DV field
      (NumericDocValuesField or SortedNumericDocValuesField). You can use
      it instead of DocValuesTermsQuery when you have field values that can
      be represented as longs.

      Like DocValuesTermsQuery, this is slowish in general, since it doesn't
      use an inverted data structure, but in certain cases (many
      terms/numbers and fewish matching hits) it should be faster than using
      TermsQuery because it's done as a "post filter" when other (faster)
      query clauses are MUST'd with it.

      In such cases it should also be faster than DocValuesTermsQuery since
      it skips having to resolve terms -> ords.

      Attachments

        1. LUCENE-6539.patch
          70 kB
          Michael McCandless
        2. LUCENE-6539.patch
          13 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: