mirror of https://github.com/apache/lucene.git
LUCENE-3305: optimization, don't retrieve the base form twice in this filter
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1230769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ebdc0872a
commit
05a65507af
|
@ -51,7 +51,7 @@ public final class KuromojiBaseFormFilter extends TokenFilter {
|
|||
if (!keywordAtt.isKeyword()) {
|
||||
String baseForm = basicFormAtt.getBaseForm();
|
||||
if (baseForm != null) {
|
||||
termAtt.setEmpty().append(basicFormAtt.getBaseForm());
|
||||
termAtt.setEmpty().append(baseForm);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue