Skip to content

Commit 263ea66

Browse files
committed
Adapt DocCountFieldType#valueFetcher signature
Relates to #64524
1 parent 344ad33 commit 263ea66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/index/mapper/DocCountFieldMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ public Query termQuery(Object value, QueryShardContext context) {
9090
}
9191

9292
@Override
93-
public ValueFetcher valueFetcher(MapperService mapperService, SearchLookup searchLookup, String format) {
93+
public ValueFetcher valueFetcher(QueryShardContext context, SearchLookup searchLookup, String format) {
9494
if (format != null) {
9595
throw new IllegalArgumentException("Field [" + name() + "] of type [" + typeName() + "] doesn't support formats.");
9696
}
9797

98-
return new SourceValueFetcher(name(), mapperService, defaultValue) {
98+
return new SourceValueFetcher(name(), context, defaultValue) {
9999
@Override
100100
protected Object parseSourceValue(Object value) {
101101
if ("".equals(value)) {

0 commit comments

Comments
 (0)