Apache Lucene open-source search software
aesthetic/javadoc fixups
Erik Hatchera2871ae443a4
diff --git a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Fragmenter.java b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Fragmenter.javaindex a1bd01c4037..ffd07d2edc6 100644--- a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Fragmenter.java+++ b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Fragmenter.java@@ -33,7 +33,7 @@ public interface Fragmenter/*** Test to see if this token from the stream should be held in a new TextFragment- * @param token+ * @param nextToken* @return*/public boolean isNewFragment(Token nextToken);diff --git a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.javaindex 76996fee0f2..1e85717b737 100644--- a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java+++ b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java@@ -83,7 +83,7 @@ public class QueryScorer implements Scorer//not a query term - returnreturn 0;}- //found a query term - is it unique in this doc?+ //found a query term - is it unique in this fragment?if(!uniqueTermsInFragment.contains(termText)){totalScore+=queryTerm.getWeight();diff --git a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.javaindex d54c5ab7fbf..0cef80ac2e4 100644--- a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java+++ b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java@@ -32,7 +32,7 @@ public interface Scorer/*** Called for each token in the current fragment* @param token The token to be scored- * @return a score which is passed to the TermHighlighter class to influence the mark-up of the text+ * @return a score which is passed to the Highlighter class to influence the mark-up of the text* (this return value is NOT used to score the fragment)*/public float getTokenScore(Token token);diff --git a/sandbox/contributions/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java b/sandbox/contributions/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.javaindex 82b9fb7e82d..6f9d5d951a9 100644--- a/sandbox/contributions/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java+++ b/sandbox/contributions/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java@@ -60,14 +60,6 @@ public class HighlighterTest extends TestCase implements Formatter"John Kennedy has been shot","This text has a typo in referring to Keneddy" };- /**- * Constructor for HighlightExtractorTest.- * @param arg0- */- public HighlighterTest(String arg0)- {- super(arg0);- }public void testSimpleHighlighter() throws Exception{