Class QueryRuleActions

java.lang.Object
co.elastic.clients.elasticsearch.query_rules.QueryRuleActions
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class QueryRuleActions extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • ids

      public final List<String> ids()
      The unique document IDs of the documents to apply the rule to. Only one of ids or docs may be specified and at least one must be specified.

      API name: ids

    • docs

      public final List<PinnedDoc> docs()
      The documents to apply the rule to. Only one of ids or docs 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupQueryRuleActionsDeserializer

      protected static void setupQueryRuleActionsDeserializer(ObjectDeserializer<QueryRuleActions.Builder> op)