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

Improve PointRangeQuery & co

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None
    • New

    Description

      The point types are now preferred for indexing numeric fields, but PointRangeQuery has some usability issues.

      I think we should make the following changes:

      • newIntRange(), newLongRange(), newFloatRange(),newDoubleRange(), newBinaryRange(): simple 1D ranges consistent with NumericRangeQuery naming.
      • newMultiIntRange(), newMultiLongRange(), newMultiFloatRange(), newMultiDoubleRange(), newMultiBinaryRange(): multi-dimensional versions of the above (take arrays, a bit harder to use, but the arrays have correct type!)
      • toString() should be meaningful, it should not spew binary nonsense unless you used a binary range!
      • improve javadocs

      If we like this, we could do similar improvements for the ExactPointQuery

      Attachments

        1. LUCENE-7039.patch
          52 kB
          Robert Muir
        2. LUCENE-7039.patch
          67 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: