mirror of https://github.com/apache/lucene.git
aesthetic/javadoc fixups
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
281ccaa902
commit
a2871ae443
|
@ -33,7 +33,7 @@ public interface Fragmenter
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test to see if this token from the stream should be held in a new TextFragment
|
* Test to see if this token from the stream should be held in a new TextFragment
|
||||||
* @param token
|
* @param nextToken
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public boolean isNewFragment(Token nextToken);
|
public boolean isNewFragment(Token nextToken);
|
||||||
|
|
|
@ -83,7 +83,7 @@ public class QueryScorer implements Scorer
|
||||||
//not a query term - return
|
//not a query term - return
|
||||||
return 0;
|
return 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))
|
if(!uniqueTermsInFragment.contains(termText))
|
||||||
{
|
{
|
||||||
totalScore+=queryTerm.getWeight();
|
totalScore+=queryTerm.getWeight();
|
||||||
|
|
|
@ -32,7 +32,7 @@ public interface Scorer
|
||||||
/**
|
/**
|
||||||
* Called for each token in the current fragment
|
* Called for each token in the current fragment
|
||||||
* @param token The token to be scored
|
* @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)
|
* (this return value is NOT used to score the fragment)
|
||||||
*/
|
*/
|
||||||
public float getTokenScore(Token token);
|
public float getTokenScore(Token token);
|
||||||
|
|
|
@ -60,14 +60,6 @@ public class HighlighterTest extends TestCase implements Formatter
|
||||||
"John Kennedy has been shot",
|
"John Kennedy has been shot",
|
||||||
"This text has a typo in referring to Keneddy" };
|
"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
|
public void testSimpleHighlighter() throws Exception
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue