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 for the query string queryfinal ExplainRequest.BuilderanalyzeWildcard(Boolean value) Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)build()Builds aExplainRequest.final ExplainRequest.BuilderdefaultOperator(Operator value) The default operator for query string query (AND or OR)final ExplainRequest.BuilderThe default field for query string query (default: _all)final ExplainRequest.BuilderRequired - The document IDfinal ExplainRequest.BuilderRequired - The name of the indexfinal ExplainRequest.BuilderSpecify whether format-based query failures (such as providing text to a numeric field) should be ignoredfinal ExplainRequest.Builderpreference(String value) Specify the node or shard the operation should be performed on (default: random)final ExplainRequest.BuilderQuery in the Lucene query string syntaxfinal ExplainRequest.BuilderAPI name:queryfinal ExplainRequest.BuilderAPI name:queryfinal ExplainRequest.BuilderSpecific routing valueprotected ExplainRequest.Builderself()final ExplainRequest.Buildersource(SourceConfigParam value) True or false to return the _source field or not, or a list of fields to returnfinal ExplainRequest.BuilderTrue or false to return the _source field or not, or a list of fields to returnfinal ExplainRequest.BuildersourceExcludes(String value, String... values) A list of fields to exclude from the returned _source fieldfinal ExplainRequest.BuildersourceExcludes(List<String> list) A list of fields to exclude from the returned _source fieldfinal ExplainRequest.BuildersourceIncludes(String value, String... values) A list of fields to extract and return from the _source fieldfinal ExplainRequest.BuildersourceIncludes(List<String> list) A list of fields to extract and return from the _source fieldfinal ExplainRequest.BuilderstoredFields(String value, String... values) A comma-separated list of stored fields to return in the responsefinal ExplainRequest.BuilderstoredFields(List<String> list) A comma-separated list of stored fields to return in the responsefinal ExplainRequest.BuilderThe type of the documentMethods 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 _source field or not, or a list of fields to returnAPI name:
_source -
source
public final ExplainRequest.Builder source(Function<SourceConfigParam.Builder, ObjectBuilder<SourceConfigParam>> fn) True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludesAdds all elements of
listtosourceExcludes. -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludesAdds one or more values to
sourceExcludes. -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includesAdds all elements of
listtosourceIncludes. -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includesAdds one or more values to
sourceIncludes. -
analyzeWildcard
Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)API name:
analyze_wildcard -
analyzer
The analyzer for the query string queryAPI name:
analyzer -
defaultOperator
The default operator for query string query (AND or OR)API name:
default_operator -
df
The default field for query string query (default: _all)API name:
df -
id
Required - The document IDAPI name:
id -
index
Required - The name of the indexAPI name:
index -
lenient
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
q
Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
query
API name:query -
routing
Specific routing valueAPI name:
routing -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fieldsAdds all elements of
listtostoredFields. -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fieldsAdds one or more values to
storedFields. -
type
The type of the documentAPI name:
type -
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.
-