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

Use interval tree in MultiRangeQuery

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None
    • New

    Description

      Currently MultiRangeQuery uses a naive approach that is iterating over a list of clauses to compute relationships between the list of ranges and the kd tree. This clearly does not scale for a large number of clauses.

      This problem has already been solved in geo (see https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/geo/ComponentTree.java). I think it should be easy to make a version of the interval tree for the n-dimensional case. 

       

      Attachments

        Issue Links

          Activity

            People

              ivera Ignacio Vera
              ivera Ignacio Vera
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h