Class PainlessContextSetup
java.lang.Object
co.elastic.clients.elasticsearch.core.scripts_painless_execute.PainlessContextSetup
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PainlessContextSetup>Json deserializer forPainlessContextSetup -
Method Summary
Modifier and TypeMethodDescriptionfinal JsonDatadocument()Required - Document that's temporarily indexed in-memory and accessible from the script.final Stringindex()Required - Index containing a mapping that's compatible with the indexed document.static PainlessContextSetupfinal Queryquery()Use this parameter to specify a query for computing a score.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forPainlessContextSetup
-
-
Method Details
-
of
public static PainlessContextSetup of(Function<PainlessContextSetup.Builder, ObjectBuilder<PainlessContextSetup>> fn) -
document
Required - Document that's temporarily indexed in-memory and accessible from the script.API name:
document -
index
Required - Index containing a mapping that's compatible with the indexed document. You may specify a remote index by prefixing the index with the remote cluster alias. For example,remote1:my_indexindicates that you want to run the painless script against the "my_index" index on the "remote1" cluster. This request will be forwarded to the "remote1" cluster if you have configured a connection to that remote cluster.NOTE: Wildcards are not accepted in the index expression for this endpoint. The expression
*:myindexwill return the error "No such remote cluster" and the expressionlogs*orremote1:logs*will return the error "index not found".API name:
index -
query
Use this parameter to specify a query for computing a score.API name:
query -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupPainlessContextSetupDeserializer
protected static void setupPainlessContextSetupDeserializer(ObjectDeserializer<PainlessContextSetup.Builder> op)
-