mirror of https://github.com/apache/lucene.git
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@179637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b305174366
commit
07cee0b287
|
@ -33,6 +33,8 @@ public class TokenGroup
|
|||
|
||||
|
||||
void addToken(Token token, float score)
|
||||
{
|
||||
if(numTokens < MAX_NUM_TOKENS_PER_GROUP)
|
||||
{
|
||||
if(numTokens==0)
|
||||
{
|
||||
|
@ -48,6 +50,7 @@ public class TokenGroup
|
|||
scores[numTokens]=score;
|
||||
numTokens++;
|
||||
}
|
||||
}
|
||||
|
||||
boolean isDistinct(Token token)
|
||||
{
|
||||
|
@ -116,5 +119,4 @@ public class TokenGroup
|
|||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue