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.BuilderAnalyzer 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.BuilderField to use as default where no field prefix is given in the query string.final ExplainRequest.BuilderRequired - Defines the document ID.final ExplainRequest.BuilderRequired - Index names 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) Specifies the node or shard the operation should be performed on.final ExplainRequest.BuilderQuery in the Lucene query string syntax.final ExplainRequest.BuilderDefines the search definition using the Query DSL.final ExplainRequest.BuilderDefines the search definition using the Query DSL.final ExplainRequest.BuilderCustom value used to route operations to a specific shard.protected ExplainRequest.Builderself()final ExplainRequest.Buildersource(SourceConfigParam value) True or false to return the_sourcefield or not, or a list of fields to return.final ExplainRequest.BuilderTrue or false to 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
True or false to 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) True or false to 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.API name:
_source_excludesAdds all elements of
listtosourceExcludes. -
sourceExcludes
A comma-separated list of source fields to exclude from the response.API name:
_source_excludesAdds one or more values to
sourceExcludes. -
sourceIncludes
A comma-separated list of source fields to include in the response.API name:
_source_includesAdds all elements of
listtosourceIncludes. -
sourceIncludes
A comma-separated list of source fields to include in the response.API name:
_source_includesAdds one or more values to
sourceIncludes. -
analyzeWildcard
Iftrue, wildcard and prefix queries are analyzed.API name:
analyze_wildcard -
analyzer
Analyzer to use for the query string. This parameter can only be used when theqquery string parameter is specified.API name:
analyzer -
defaultOperator
The default operator for query string query:ANDorOR.API name:
default_operator -
df
Field to use as default where no field prefix is given in the query string.API name:
df -
id
Required - Defines the document ID.API name:
id -
index
Required - Index names 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.API name:
lenient -
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference -
q
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 -
routing
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.
-