diff options
author | Adrien Grand <jpountz@gmail.com> | 2017-06-22 12:35:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-22 12:35:33 +0200 |
commit | 44e9c0b9473ffa8ce536953ed886988c7bffc95f (patch) | |
tree | 5666f433b35ada8375dee3c47255d891162e2076 /test/framework | |
parent | a9775690858e2272f0f00f917ae1d7c25753909b (diff) |
Upgrade to lucene-7.0.0-snapshot-ad2cb77. (#25349)
Most notable changes:
- better update concurrency: LUCENE-7868
- TopDocs.totalHits is now a long: LUCENE-7872
- QueryBuilder does not remove the boolean query around multi-term synonyms:
LUCENE-7878
- removal of Fields: LUCENE-7500
For the `TopDocs.totalHits` change, this PR relies on the fact that the encoding
of vInts and vLongs are compatible: you can write and read with any of them as
long as the value can be represented by a positive int.
Diffstat (limited to 'test/framework')
-rw-r--r-- | test/framework/src/main/java/org/elasticsearch/test/engine/ThrowingLeafReaderWrapper.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/framework/src/main/java/org/elasticsearch/test/engine/ThrowingLeafReaderWrapper.java b/test/framework/src/main/java/org/elasticsearch/test/engine/ThrowingLeafReaderWrapper.java index 314f1b5285..1d89fc981f 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/engine/ThrowingLeafReaderWrapper.java +++ b/test/framework/src/main/java/org/elasticsearch/test/engine/ThrowingLeafReaderWrapper.java @@ -81,12 +81,14 @@ public class ThrowingLeafReaderWrapper extends FilterLeafReader { this.thrower = thrower; } - @Override - public Fields fields() throws IOException { - Fields fields = super.fields(); - thrower.maybeThrow(Flags.Fields); - return fields == null ? null : new ThrowingFields(fields, thrower); + public Terms terms(String field) throws IOException { + Terms terms = super.terms(field); + if (thrower.wrapTerms(field)) { + thrower.maybeThrow(Flags.Terms); + return terms == null ? null : new ThrowingTerms(terms, thrower); + } + return terms; } @Override |