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:
Steven Rowe 2012-08-07 23:21:56 +00:00
parent fde78b8196
commit a4c3b3577e
1 changed files with 2 additions and 2 deletions

View File

@ -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>