You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2016/03/12 01:26:56 UTC

[15/50] [abbrv] lucene-solr git commit: LUCENE-7076: improve deprecation message for LegacyNumericRangeQuery

LUCENE-7076: improve deprecation message for LegacyNumericRangeQuery


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a7ff1c8d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a7ff1c8d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a7ff1c8d

Branch: refs/heads/jira/SOLR-445
Commit: a7ff1c8d3e3ca42f7e7f8696bf1f6048b3bfa2ba
Parents: 58623e0
Author: Robert Muir <rm...@apache.org>
Authored: Wed Mar 9 12:16:59 2016 -0500
Committer: Robert Muir <rm...@apache.org>
Committed: Wed Mar 9 12:16:59 2016 -0500

----------------------------------------------------------------------
 .../apache/lucene/search/LegacyNumericRangeQuery.java   | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a7ff1c8d/lucene/core/src/java/org/apache/lucene/search/LegacyNumericRangeQuery.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/search/LegacyNumericRangeQuery.java b/lucene/core/src/java/org/apache/lucene/search/LegacyNumericRangeQuery.java
index c61f7a8..fe6c9e2 100644
--- a/lucene/core/src/java/org/apache/lucene/search/LegacyNumericRangeQuery.java
+++ b/lucene/core/src/java/org/apache/lucene/search/LegacyNumericRangeQuery.java
@@ -21,9 +21,14 @@ import java.io.IOException;
 import java.util.LinkedList;
 import java.util.Objects;
 
+import org.apache.lucene.document.DoublePoint;
 import org.apache.lucene.document.FieldType;
 import org.apache.lucene.document.FieldType.LegacyNumericType;
+import org.apache.lucene.document.FloatPoint;
+import org.apache.lucene.document.IntPoint;
+import org.apache.lucene.document.LongPoint;
 import org.apache.lucene.index.FilteredTermsEnum;
+import org.apache.lucene.index.PointValues;
 import org.apache.lucene.index.Terms;
 import org.apache.lucene.index.TermsEnum;
 import org.apache.lucene.util.AttributeSource;
@@ -158,7 +163,12 @@ import org.apache.lucene.index.Term; // for javadocs
  * precision step). This query type was developed for a geographic portal, where the performance for
  * e.g. bounding boxes or exact date/time stamps is important.</p>
  *
- * @deprecated Please use {@link PointRangeQuery} instead
+ * @deprecated Instead index with {@link IntPoint}, {@link LongPoint}, {@link FloatPoint}, {@link DoublePoint}, and
+ *             create range queries with {@link IntPoint#newRangeQuery(String, int, int) IntPoint.newRangeQuery()},
+ *             {@link LongPoint#newRangeQuery(String, long, long) LongPoint.newRangeQuery()},
+ *             {@link FloatPoint#newRangeQuery(String, float, float) FloatPoint.newRangeQuery()},
+ *             {@link DoublePoint#newRangeQuery(String, double, double) DoublePoint.newRangeQuery()} respectively.
+ *             See {@link PointValues} for background information on Points.
  *
  * @since 2.9
  **/