Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-7223: improve XXXPoint javadocs to explain that a StoredField is needed if you want to retrieve the original value at search time

Mike McCandlessc7d4080820b0
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 717d9585d24..d7e1b3902bf 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -84,6 +84,12 @@ Bug Fixes
that led to IllegalStateException being thrown when nothing was wrong.
(David Smiley, yonik)
+Documentation
+
+* LUCENE-7223: Improve XXXPoint javadocs to make it clear that you
+ should separately add StoredField if you want to retrieve these
+ field values at search time (Greg Huber, Robert Muir, Mike McCandless)
+
Other
* LUCENE-7174: Upgrade randomizedtesting to 2.3.4. (Uwe Schindler, Dawid Weiss)
diff --git a/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java b/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java
index 7132a5d8a3b..3b0a0e97591 100644
--- a/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java
@@ -28,7 +28,8 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.StringHelper;
/**
- * An indexed binary field.
+ * An indexed binary field for fast range filters. If you also
+ * need to store the value, you should add a separate {@link StoredField} instance.
* <p>
* Finding all documents within an N-dimensional shape or range at search time is
* efficient. Multiple values for the same field in one document
diff --git a/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java b/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java
index 102e94fff02..9a383a489c0 100644
--- a/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java
@@ -27,7 +27,8 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * An indexed {@code double} field.
+ * An indexed {@code double} field for fast range filters. If you also
+ * need to store the value, you should add a separate {@link StoredField} instance.
* <p>
* Finding all documents within an N-dimensional shape or range at search time is
* efficient. Multiple values for the same field in one document
diff --git a/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java b/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java
index f3626cf2d76..8d84269d2e1 100644
--- a/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java
@@ -27,7 +27,8 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * An indexed {@code float} field.
+ * An indexed {@code float} field for fast range filters. If you also
+ * need to store the value, you should add a separate {@link StoredField} instance.
* <p>
* Finding all documents within an N-dimensional at search time is
* efficient. Multiple values for the same field in one document
diff --git a/lucene/core/src/java/org/apache/lucene/document/IntPoint.java b/lucene/core/src/java/org/apache/lucene/document/IntPoint.java
index 41be87643c3..8b3484b76b3 100644
--- a/lucene/core/src/java/org/apache/lucene/document/IntPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/IntPoint.java
@@ -27,7 +27,8 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * An indexed {@code int} field.
+ * An indexed {@code int} field for fast range filters. If you also
+ * need to store the value, you should add a separate {@link StoredField} instance.
* <p>
* Finding all documents within an N-dimensional shape or range at search time is
* efficient. Multiple values for the same field in one document
diff --git a/lucene/core/src/java/org/apache/lucene/document/LongPoint.java b/lucene/core/src/java/org/apache/lucene/document/LongPoint.java
index 6f45962dbf1..686086c7e4f 100644
--- a/lucene/core/src/java/org/apache/lucene/document/LongPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/LongPoint.java
@@ -27,7 +27,8 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * An indexed {@code long} field.
+ * An indexed {@code long} field for fast range filters. If you also
+ * need to store the value, you should add a separate {@link StoredField} instance.
* <p>
* Finding all documents within an N-dimensional shape or range at search time is
* efficient. Multiple values for the same field in one document