remove ParseFieldMatcher usages from InternalSearchHit

This commit is contained in:
javanna 2017-01-04 15:59:31 +01:00 committed by Luca Cavanna
parent 975fee402a
commit 5daf46286e
1 changed files with 2 additions and 4 deletions

View File

@ -23,8 +23,6 @@ import org.apache.lucene.search.Explanation;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.ParseFieldMatcher;
import org.elasticsearch.common.ParseFieldMatcherSupplier;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.compress.CompressorFactory;
@ -726,7 +724,7 @@ public class InternalSearchHit implements SearchHit {
return builder;
}
private static final ConstructingObjectParser<InternalNestedIdentity, ParseFieldMatcherSupplier> PARSER = new ConstructingObjectParser<>(
private static final ConstructingObjectParser<InternalNestedIdentity, Void> PARSER = new ConstructingObjectParser<>(
"nested_identity",
ctorArgs -> new InternalNestedIdentity((String) ctorArgs[0], (int) ctorArgs[1], (InternalNestedIdentity) ctorArgs[2]));
static {
@ -736,7 +734,7 @@ public class InternalSearchHit implements SearchHit {
}
public static InternalNestedIdentity fromXContent(XContentParser parser) {
return PARSER.apply(parser, () -> ParseFieldMatcher.EMPTY);
return PARSER.apply(parser, null);
}
@Override