Class PainlessContextSetup.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PainlessContextSetup.Builder>
co.elastic.clients.elasticsearch.core.scripts_painless_execute.PainlessContextSetup.Builder
- All Implemented Interfaces:
WithJson<PainlessContextSetup.Builder>,ObjectBuilder<PainlessContextSetup>
- Enclosing class:
- PainlessContextSetup
public static class PainlessContextSetup.Builder
extends WithJsonObjectBuilderBase<PainlessContextSetup.Builder>
implements ObjectBuilder<PainlessContextSetup>
Builder for
PainlessContextSetup.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPainlessContextSetup.Required - Document that's temporarily indexed in-memory and accessible from the script.Required - Index containing a mapping that's compatible with the indexed document.Use this parameter to specify a query for computing a score.query(QueryVariant value) Use this parameter to specify a query for computing a score.Use this parameter to specify a query for computing a score.protected PainlessContextSetup.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
query
Use this parameter to specify a query for computing a score.API name:
query -
query
Use this parameter to specify a query for computing a score.API name:
query -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PainlessContextSetup.Builder>
-
build
Builds aPainlessContextSetup.- Specified by:
buildin interfaceObjectBuilder<PainlessContextSetup>- Throws:
NullPointerException- if some of the required fields are null.
-