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.Builder
The analyzer to use for the query string.final ExplainRequest.Builder
analyzeWildcard
(Boolean value) Iftrue
, wildcard and prefix queries are analyzed.build()
Builds aExplainRequest
.final ExplainRequest.Builder
defaultOperator
(Operator value) The default operator for query string query:AND
orOR
.final ExplainRequest.Builder
The field to use as default where no field prefix is given in the query string.final ExplainRequest.Builder
Required - The document identifier.final ExplainRequest.Builder
Required - Index names that are used to limit the request.final ExplainRequest.Builder
Iftrue
, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.final ExplainRequest.Builder
preference
(String value) The node or shard the operation should be performed on.final ExplainRequest.Builder
The query in the Lucene query string syntax.final ExplainRequest.Builder
Defines the search definition using the Query DSL.final ExplainRequest.Builder
query
(QueryVariant value) Defines the search definition using the Query DSL.final ExplainRequest.Builder
Defines the search definition using the Query DSL.final ExplainRequest.Builder
A custom value used to route operations to a specific shard.protected ExplainRequest.Builder
self()
final ExplainRequest.Builder
source
(SourceConfigParam value) True
orfalse
to return the_source
field or not or a list of fields to return.final ExplainRequest.Builder
True
orfalse
to return the_source
field or not or a list of fields to return.final ExplainRequest.Builder
sourceExcludes
(String value, String... values) A comma-separated list of source fields to exclude from the response.final ExplainRequest.Builder
sourceExcludes
(List<String> list) A comma-separated list of source fields to exclude from the response.final ExplainRequest.Builder
sourceIncludes
(String value, String... values) A comma-separated list of source fields to include in the response.final ExplainRequest.Builder
sourceIncludes
(List<String> list) A comma-separated list of source fields to include in the response.final ExplainRequest.Builder
storedFields
(String value, String... values) A comma-separated list of stored fields to return in the response.final ExplainRequest.Builder
storedFields
(List<String> list) A comma-separated list of stored fields to return in the response.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
True
orfalse
to return the_source
field or not or a list of fields to return.API name:
_source
-
source
public final ExplainRequest.Builder source(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) True
orfalse
to return the_source
field 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_includes
query parameter. If the_source
parameter isfalse
, this parameter is ignored.API name:
_source_excludes
Adds all elements of
list
tosourceExcludes
. -
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_includes
query parameter. If the_source
parameter isfalse
, this parameter is ignored.API name:
_source_excludes
Adds 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_excludes
query parameter. If the_source
parameter isfalse
, this parameter is ignored.API name:
_source_includes
Adds all elements of
list
tosourceIncludes
. -
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_excludes
query parameter. If the_source
parameter isfalse
, this parameter is ignored.API name:
_source_includes
Adds one or more values to
sourceIncludes
. -
analyzeWildcard
Iftrue
, wildcard and prefix queries are analyzed. This parameter can be used only when theq
query string parameter is specified.API name:
analyze_wildcard
-
analyzer
The analyzer to use for the query string. This parameter can be used only when theq
query string parameter is specified.API name:
analyzer
-
defaultOperator
The default operator for query string query:AND
orOR
. This parameter can be used only when theq
query 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 theq
query 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 theq
query 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_fields
Adds all elements of
list
tostoredFields
. -
storedFields
A comma-separated list of stored fields to return in the response.API name:
stored_fields
Adds one or more values to
storedFields
. -
self
- Specified by:
self
in classRequestBase.AbstractBuilder<ExplainRequest.Builder>
-
build
Builds aExplainRequest
.- Specified by:
build
in interfaceObjectBuilder<ExplainRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-