Class ExplainRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ExplainRequest.Builder>
co.elastic.clients.elasticsearch.core.ExplainRequest.Builder
- All Implemented Interfaces:
WithJson<ExplainRequest.Builder>,ObjectBuilder<ExplainRequest>
- Enclosing class:
- ExplainRequest
public static class ExplainRequest.Builder
extends RequestBase.AbstractBuilder<ExplainRequest.Builder>
implements ObjectBuilder<ExplainRequest>
Builder for
ExplainRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ExplainRequest.BuilderThe analyzer to use for the query string.final ExplainRequest.BuilderanalyzeWildcard(Boolean value) Iftrue, wildcard and prefix queries are analyzed.build()Builds aExplainRequest.final ExplainRequest.BuilderdefaultOperator(Operator value) The default operator for query string query:andoror.final ExplainRequest.BuilderThe field to use as default where no field prefix is given in the query string.final ExplainRequest.BuilderRequired - The document identifier.final ExplainRequest.BuilderRequired - Index names that are used to limit the request.final ExplainRequest.BuilderIftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.final ExplainRequest.Builderpreference(String value) The node or shard the operation should be performed on.final ExplainRequest.BuilderThe query in the Lucene query string syntax.final ExplainRequest.BuilderDefines the search definition using the Query DSL.final ExplainRequest.Builderquery(QueryVariant value) Defines the search definition using the Query DSL.final ExplainRequest.BuilderDefines the search definition using the Query DSL.final ExplainRequest.BuilderA custom value used to route operations to a specific shard.protected ExplainRequest.Builderself()final ExplainRequest.Buildersource(SourceConfigParam value) Trueorfalseto return the_sourcefield or not or a list of fields to return.final ExplainRequest.BuilderTrueorfalseto return the_sourcefield or not or a list of fields to return.final ExplainRequest.BuildersourceExcludes(String value, String... values) A comma-separated list of source fields to exclude from the response.final ExplainRequest.BuildersourceExcludes(List<String> list) A comma-separated list of source fields to exclude from the response.final ExplainRequest.BuildersourceIncludes(String value, String... values) A comma-separated list of source fields to include in the response.final ExplainRequest.BuildersourceIncludes(List<String> list) A comma-separated list of source fields to include in the response.final ExplainRequest.BuilderstoredFields(String value, String... values) A comma-separated list of stored fields to return in the response.final ExplainRequest.BuilderstoredFields(List<String> list) A comma-separated list of stored fields to return in the response.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
-
source
Trueorfalseto return the_sourcefield or not or a list of fields to return.API name:
_source -
source
public final ExplainRequest.Builder source(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) Trueorfalseto return the_sourcefield or not or a list of fields to return.API name:
_source -
sourceExcludes
A comma-separated list of source fields to exclude from the response. You can also use this parameter to exclude fields from the subset specified in_source_includesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_excludesAdds all elements of
listtosourceExcludes. -
sourceExcludes
A comma-separated list of source fields to exclude from the response. You can also use this parameter to exclude fields from the subset specified in_source_includesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_excludesAdds one or more values to
sourceExcludes. -
sourceIncludes
A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the_source_excludesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_includesAdds all elements of
listtosourceIncludes. -
sourceIncludes
A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the_source_excludesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_includesAdds one or more values to
sourceIncludes. -
analyzeWildcard
Iftrue, wildcard and prefix queries are analyzed. This parameter can be used only when theqquery string parameter is specified.API name:
analyze_wildcard -
analyzer
The analyzer to use for the query string. This parameter can be used only when theqquery string parameter is specified.API name:
analyzer -
defaultOperator
The default operator for query string query:andoror. This parameter can be used only when theqquery string parameter is specified.API name:
default_operator -
df
The field to use as default where no field prefix is given in the query string. This parameter can be used only when theqquery string parameter is specified.API name:
df -
id
Required - The document identifier.API name:
id -
index
Required - Index names that are used to limit the request. Only a single index name can be provided to this parameter.API name:
index -
lenient
Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. This parameter can be used only when theqquery string parameter is specified.API name:
lenient -
preference
The node or shard the operation should be performed on. It is random by default.API name:
preference -
q
The query in the Lucene query string syntax.API name:
q -
query
Defines the search definition using the Query DSL.API name:
query -
query
Defines the search definition using the Query DSL.API name:
query -
query
Defines the search definition using the Query DSL.API name:
query -
routing
A custom value used to route operations to a specific shard.API name:
routing -
storedFields
A comma-separated list of stored fields to return in the response.API name:
stored_fieldsAdds all elements of
listtostoredFields. -
storedFields
A comma-separated list of stored fields to return in the response.API name:
stored_fieldsAdds one or more values to
storedFields. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ExplainRequest.Builder>
-
build
Builds aExplainRequest.- Specified by:
buildin interfaceObjectBuilder<ExplainRequest>- Throws:
NullPointerException- if some of the required fields are null.
-