Skip to content

Apache Lucene open-source search software

javadocs

Robert Muire901c6197327
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 6a3cb856704..201001a7b66 100644
--- a/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/BinaryPoint.java
@@ -21,9 +21,10 @@ import org.apache.lucene.search.Query;
import org.apache.lucene.util.BytesRef;
/**
- * A binary field that is indexed dimensionally such that finding
- * all documents within an N-dimensional shape or range at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed binary field.
+ * <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
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
diff --git a/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java b/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
index 2762701899d..ed4d0aada56 100644
--- a/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
+++ b/lucene/core/src/java/org/apache/lucene/document/DocumentStoredFieldVisitor.java
@@ -16,7 +16,6 @@
*/
package org.apache.lucene.document;
-
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.HashSet;
@@ -27,8 +26,10 @@ import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.StoredFieldVisitor;
/** A {@link StoredFieldVisitor} that creates a {@link
- * Document} containing all stored fields, or only specific
- * requested fields provided to {@link #DocumentStoredFieldVisitor(Set)}.
+ * Document} from stored fields.
+ * <p>
+ * This visitor supports loading all stored fields, or only specific
+ * requested fields provided from a {@link Set}.
* <p>
* This is used by {@link IndexReader#document(int)} to load a
* 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 73782880ff3..fa0fbdc743a 100644
--- a/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/DoublePoint.java
@@ -22,9 +22,10 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * A double field that is indexed dimensionally such that finding
- * all documents within an N-dimensional shape or range at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed {@code double} field.
+ * <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
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
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 ae7d20789b0..ec37bc8d62f 100644
--- a/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/FloatPoint.java
@@ -22,9 +22,10 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * A float field that is indexed dimensionally such that finding
- * all documents within an N-dimensional at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed {@code float} field.
+ * <p>
+ * Finding all documents within an N-dimensional at search time is
+ * efficient. Multiple values for the same field in one document
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
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 1d04b620c5d..ec2e3cfbf0f 100644
--- a/lucene/core/src/java/org/apache/lucene/document/IntPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/IntPoint.java
@@ -22,9 +22,10 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * An int field that is indexed dimensionally such that finding
- * all documents within an N-dimensional shape or range at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed {@code int} field.
+ * <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
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
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 7a7f16d7c9e..c2f774abf01 100644
--- a/lucene/core/src/java/org/apache/lucene/document/LongPoint.java
+++ b/lucene/core/src/java/org/apache/lucene/document/LongPoint.java
@@ -22,9 +22,10 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * A long field that is indexed dimensionally such that finding
- * all documents within an N-dimensional shape or range at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed {@code long} field.
+ * <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
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
diff --git a/lucene/core/src/java/org/apache/lucene/document/StoredField.java b/lucene/core/src/java/org/apache/lucene/document/StoredField.java
index 1faff36bd67..12b529c232a 100644
--- a/lucene/core/src/java/org/apache/lucene/document/StoredField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/StoredField.java
@@ -16,14 +16,12 @@
*/
package org.apache.lucene.document;
-
import org.apache.lucene.index.IndexReader; // javadocs
-import org.apache.lucene.index.IndexableField;
import org.apache.lucene.search.IndexSearcher; // javadocs
import org.apache.lucene.util.BytesRef;
/** A field whose value is stored so that {@link
- * IndexSearcher#doc} and {@link IndexReader#document} will
+ * IndexSearcher#doc} and {@link IndexReader#document IndexReader.document()} will
* return the field and its value. */
public class StoredField extends Field {
diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/BigIntegerPoint.java b/lucene/sandbox/src/java/org/apache/lucene/document/BigIntegerPoint.java
index 4716adae907..b12f19f0a1f 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/BigIntegerPoint.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/BigIntegerPoint.java
@@ -24,9 +24,10 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.NumericUtils;
/**
- * A 128-bit integer field that is indexed dimensionally such that finding
- * all documents within an N-dimensional shape or range at search time is
- * efficient. Multiple values for the same field in one documents
+ * An indexed 128-bit {@code BigInteger} field.
+ * <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
* is allowed.
* <p>
* This field defines static factory methods for creating common queries:
diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/InetAddressPoint.java b/lucene/sandbox/src/java/org/apache/lucene/document/InetAddressPoint.java
index d8892cc7505..4e5d6997fef 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/InetAddressPoint.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/InetAddressPoint.java
@@ -24,8 +24,9 @@ import org.apache.lucene.search.Query;
import org.apache.lucene.util.BytesRef;
/**
- * A field indexing {@link InetAddress} dimensionally such that finding
- * all documents within a range at search time is
+ * An indexed 128-bit {@code InetAddress} field.
+ * <p>
+ * Finding all documents within a range at search time is
* efficient. Multiple values for the same field in one document
* is allowed.
* <p>
diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPoint.java b/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPoint.java
index 6ce6a74155c..8b654c17c15 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPoint.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/document/LatLonPoint.java
@@ -28,8 +28,9 @@ import org.apache.lucene.search.Query;
import org.apache.lucene.spatial.util.GeoUtils;
/**
- * A field indexing geographic coordinates dimensionally such that finding
- * all documents within a range at search time is
+ * An indexed location field.
+ * <p>
+ * Finding all documents within a range at search time is
* efficient. Multiple values for the same field in one document
* is allowed.
* <p>