File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
server/src/main/java/org/opensearch/search/aggregations/support Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4040import org .opensearch .core .xcontent .XContentBuilder ;
4141import org .opensearch .core .xcontent .XContentParser ;
4242import org .opensearch .index .query .QueryShardContext ;
43+ import org .opensearch .index .query .WithFieldName ;
4344import org .opensearch .script .Script ;
4445import org .opensearch .search .aggregations .AbstractAggregationBuilder ;
4546import org .opensearch .search .aggregations .AggregationInitializationException ;
5758 *
5859 * @opensearch.internal
5960 */
60- public abstract class ValuesSourceAggregationBuilder <AB extends ValuesSourceAggregationBuilder <AB >> extends AbstractAggregationBuilder <AB > {
61+ public abstract class ValuesSourceAggregationBuilder <AB extends ValuesSourceAggregationBuilder <AB >> extends AbstractAggregationBuilder <AB >
62+ implements
63+ WithFieldName {
6164
6265 public static <T > void declareFields (
6366 AbstractObjectParser <? extends ValuesSourceAggregationBuilder <?>, T > objectParser ,
@@ -292,6 +295,11 @@ public String field() {
292295 return field ;
293296 }
294297
298+ @ Override
299+ public String fieldName () {
300+ return field ();
301+ }
302+
295303 /**
296304 * Sets the script to use for this aggregation.
297305 */
You can’t perform that action at this time.
0 commit comments