lucene 4: use the proper token stream to return

This commit is contained in:
Shay Banon 2012-11-03 23:16:52 +01:00
parent a10f60873c
commit cb5df26bf7
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class AllField extends Field {
}
@Override
public TokenStream tokenStreamValue() {
public TokenStream tokenStream(Analyzer analyzer) throws IOException {
try {
allEntries.reset(); // reset the all entries, just in case it was read already
return AllTokenStream.allTokenStream(name, allEntries, analyzer);