API
diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java
index 64f85d865..1bc9ceb3c 100644
--- a/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java
+++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/core/FieldCapsRequest.java
@@ -87,6 +87,9 @@ public class FieldCapsRequest extends RequestBase implements JsonpSerializable {
@Nullable
private final Boolean ignoreUnavailable;
+ @Nullable
+ private final Boolean includeEmptyFields;
+
@Nullable
private final Boolean includeUnmapped;
@@ -108,6 +111,7 @@ private FieldCapsRequest(Builder builder) {
this.fields = ApiTypeHelper.unmodifiable(builder.fields);
this.filters = builder.filters;
this.ignoreUnavailable = builder.ignoreUnavailable;
+ this.includeEmptyFields = builder.includeEmptyFields;
this.includeUnmapped = builder.includeUnmapped;
this.index = ApiTypeHelper.unmodifiable(builder.index);
this.indexFilter = builder.indexFilter;
@@ -178,6 +182,16 @@ public final Boolean ignoreUnavailable() {
return this.ignoreUnavailable;
}
+ /**
+ * If false, empty fields are not included in the response.
+ *
+ * API name: {@code include_empty_fields}
+ */
+ @Nullable
+ public final Boolean includeEmptyFields() {
+ return this.includeEmptyFields;
+ }
+
/**
* If true, unmapped fields are included in the response.
*
@@ -294,6 +308,9 @@ public static class Builder extends RequestBase.AbstractBuilder
@Nullable
private Boolean ignoreUnavailable;
+ @Nullable
+ private Boolean includeEmptyFields;
+
@Nullable
private Boolean includeUnmapped;
@@ -401,6 +418,16 @@ public final Builder ignoreUnavailable(@Nullable Boolean value) {
return this;
}
+ /**
+ * If false, empty fields are not included in the response.
+ *
+ * API name: {@code include_empty_fields}
+ */
+ public final Builder includeEmptyFields(@Nullable Boolean value) {
+ this.includeEmptyFields = value;
+ return this;
+ }
+
/**
* If true, unmapped fields are included in the response.
*
@@ -634,6 +661,9 @@ protected static void setupFieldCapsRequestDeserializer(ObjectDeserializerDocumentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-rank-eval.html#_discounted_cumulative_gain_dcg">Documentation
* on elastic.co
* @see