Class QueryRuleActions
java.lang.Object
co.elastic.clients.elasticsearch.query_rules.QueryRuleActions
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryRuleActions>
Json deserializer forQueryRuleActions
-
Method Summary
Modifier and TypeMethodDescriptiondocs()
The documents to apply the rule to.ids()
The unique document IDs of the documents to apply the rule to.static QueryRuleActions
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryRuleActions
-
-
Method Details
-
of
public static QueryRuleActions of(Function<QueryRuleActions.Builder, ObjectBuilder<QueryRuleActions>> fn) -
ids
The unique document IDs of the documents to apply the rule to. Only one ofids
ordocs
may be specified and at least one must be specified.API name:
ids
-
docs
The documents to apply the rule to. Only one ofids
ordocs
may be specified and at least one must be specified. There is a maximum value of 100 documents in a rule. You can specify the following attributes for each document:_index
: The index of the document to pin._id
: The unique document ID.
API name:
docs
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupQueryRuleActionsDeserializer
protected static void setupQueryRuleActionsDeserializer(ObjectDeserializer<QueryRuleActions.Builder> op)
-