reset stream when getting all stream so it can be reused

This commit is contained in:
kimchy 2011-02-17 19:25:23 +02:00
parent 9ca8165f3b
commit c67912e259
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public class AllField extends AbstractField {
@Override public TokenStream tokenStreamValue() {
try {
allEntries.reset(); // reset the all entries, just in case it was read already
return AllTokenStream.allTokenStream(name, allEntries, analyzer);
} catch (IOException e) {
throw new ElasticSearchException("Failed to create token stream");