From 3fb6a4d6135f1fb9f838f04b892259f0df21325d Mon Sep 17 00:00:00 2001 From: Atri Sharma Date: Fri, 26 Jul 2019 14:27:41 +0530 Subject: [PATCH] Update TODO comments --- .../src/java/org/apache/lucene/search/MultiRangeQuery.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lucene/sandbox/src/java/org/apache/lucene/search/MultiRangeQuery.java b/lucene/sandbox/src/java/org/apache/lucene/search/MultiRangeQuery.java index 824c04b90ef..9db4079d19b 100644 --- a/lucene/sandbox/src/java/org/apache/lucene/search/MultiRangeQuery.java +++ b/lucene/sandbox/src/java/org/apache/lucene/search/MultiRangeQuery.java @@ -32,6 +32,7 @@ import org.apache.lucene.util.DocIdSetBuilder; /** * Abstract class for range queries involving multiple ranges against physical points such as {@code IntPoints} * All ranges are logically ORed together + * TODO: Add capability for handling overlapping ranges at rewrite time * @lucene.experimental */ public abstract class MultiRangeQuery extends Query { @@ -132,6 +133,9 @@ public abstract class MultiRangeQuery extends Query { } } + /* + * TODO: Organize ranges similar to how EdgeTree does, to avoid linear scan of ranges + */ @Override public final Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException {