Skip to content

Apache Lucene open-source search software

Fixed @see tags and added reference to HitIterator from Hits.iterator

Erik Hatcher2bb0c8f25756
diff --git a/src/java/org/apache/lucene/search/Hit.java b/src/java/org/apache/lucene/search/Hit.java
index ae0f03619d8..ccd286ad5a8 100644
--- a/src/java/org/apache/lucene/search/Hit.java
+++ b/src/java/org/apache/lucene/search/Hit.java
@@ -49,7 +49,7 @@ public class Hit implements java.io.Serializable {
/**
* Returns document for this hit.
*
- * @see {@link Hits#doc(int)}
+ * @see Hits#doc(int)
*/
public Document getDocument() throws IOException {
if (!resolved) fetchTheHit();
@@ -59,7 +59,7 @@ public class Hit implements java.io.Serializable {
/**
* Returns score for this hit.
*
- * @see {@link Hits#score(int)}
+ * @see Hits#score(int)
*/
public float getScore() throws IOException {
if (!resolved) fetchTheHit();
@@ -69,7 +69,7 @@ public class Hit implements java.io.Serializable {
/**
* Returns id for this hit.
*
- * @see {@link Hits#id(int)}
+ * @see Hits#id(int)
*/
public int getId() throws IOException {
if (!resolved) fetchTheHit();
@@ -88,7 +88,7 @@ public class Hit implements java.io.Serializable {
/**
* Returns the boost factor for this hit on any field of the underlying document.
*
- * @see {@link Document#getBoost()}
+ * @see Document#getBoost()
*/
public float getBoost() throws IOException {
return getDocument().getBoost();
@@ -100,7 +100,7 @@ public class Hit implements java.io.Serializable {
* method returns the first value added. If only binary fields with this name
* exist, returns null.
*
- * @see {@link Document#get(String)}
+ * @see Document#get(String)
*/
public String get(String name) throws IOException {
return getDocument().get(name);
@@ -111,7 +111,7 @@ public class Hit implements java.io.Serializable {
* <p/>
* If an IOException occurs whilst getting the document, returns null
*
- * @see {@link Document#toString()}
+ * @see Document#toString()
*/
public String toString() {
try {
diff --git a/src/java/org/apache/lucene/search/Hits.java b/src/java/org/apache/lucene/search/Hits.java
index c0a8eaed646..aae9b50b541 100644
--- a/src/java/org/apache/lucene/search/Hits.java
+++ b/src/java/org/apache/lucene/search/Hits.java
@@ -116,7 +116,7 @@ public final class Hits {
}
/**
- * Returns an {@link Iterator} to navigate the Hits. Each item returned
+ * Returns a {@link HitIterator} to navigate the Hits. Each item returned
* from {@link Iterator#next()} is a {@link Hit}.
* <p>
* <b>Caution:</b> Iterate only over the hits needed. Iterating over all