reset stream when getting all stream so it can be reused
This commit is contained in:
parent
9ca8165f3b
commit
c67912e259
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue