mirror of https://github.com/apache/lucene.git
fix doc bugs (thanks to Oren Bochman)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1370591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fde78b8196
commit
a4c3b3577e
|
@ -480,7 +480,7 @@ public class MyAnalyzer extends Analyzer {
|
|||
System.out.println(termAtt.toString());
|
||||
}
|
||||
|
||||
stream.end()
|
||||
stream.end();
|
||||
} finally {
|
||||
stream.close();
|
||||
}
|
||||
|
@ -509,7 +509,7 @@ easily by adding a LengthFilter to the chain. Only the
|
|||
{@literal @Override}
|
||||
protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
|
||||
final Tokenizer source = new WhitespaceTokenizer(matchVersion, reader);
|
||||
TokenStream result = new LengthFilter(source, 3, Integer.MAX_VALUE);
|
||||
TokenStream result = new LengthFilter(true, source, 3, Integer.MAX_VALUE);
|
||||
return new TokenStreamComponents(source, result);
|
||||
}
|
||||
</pre>
|
||||
|
|
Loading…
Reference in New Issue