Skip to content

Apache Lucene open-source search software

fix a link in the API doc and avoid an Eclipse warning

Daniel Naber473ed1013c27
diff --git a/src/java/org/apache/lucene/search/Similarity.java b/src/java/org/apache/lucene/search/Similarity.java
index 620678f7b2c..096ebbd098a 100644
--- a/src/java/org/apache/lucene/search/Similarity.java
+++ b/src/java/org/apache/lucene/search/Similarity.java
@@ -112,8 +112,8 @@ public abstract class Similarity {
* and larger values when <code>numTokens</code> is small.
*
* <p>That these values are computed under {@link
- * IndexWriter#addDocument(Document)} and stored then using
- * {#encodeNorm(float)}. Thus they have limited precision, and documents
+ * IndexWriter#addDocument(org.apache.lucene.document.Document)} and stored then using
+ * {@link #encodeNorm(float)}. Thus they have limited precision, and documents
* must be re-indexed if this method is altered.
*
* @param fieldName the name of the field