Class ExplainRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.ExplainRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ExplainRequest>
- Enclosing class:
- ExplainRequest
public static class ExplainRequest.Builder extends java.lang.Object implements ObjectBuilder<ExplainRequest>
Builder for
ExplainRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ExplainRequest.BuilderaddSourceExcludes(java.lang.String value)Add a value tosourceExcludes(List), creating the list if needed.ExplainRequest.BuilderaddSourceIncludes(java.lang.String value)Add a value tosourceIncludes(List), creating the list if needed.ExplainRequest.BuilderaddStoredFields(java.lang.String value)Add a value tostoredFields(List), creating the list if needed.ExplainRequest.Builderanalyzer(java.lang.String value)The analyzer for the query string queryExplainRequest.BuilderanalyzeWildcard(java.lang.Boolean value)Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)ExplainRequestbuild()Builds aExplainRequest.ExplainRequest.BuilderdefaultOperator(DefaultOperator value)The default operator for query string query (AND or OR)ExplainRequest.Builderdf(java.lang.String value)The default field for query string query (default: _all)ExplainRequest.Builderid(java.lang.String value)Required - The document IDExplainRequest.Builderindex(java.lang.String value)Required - The name of the indexExplainRequest.Builderlenient(java.lang.Boolean value)Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredExplainRequest.Builderpreference(java.lang.String value)Specify the node or shard the operation should be performed on (default: random)ExplainRequest.Builderq(java.lang.String value)Query in the Lucene query string syntaxExplainRequest.Builderquery(Query value)API name:queryExplainRequest.Builderquery(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:queryExplainRequest.Builderrouting(java.lang.String value)Specific routing valueExplainRequest.Buildersource(jakarta.json.JsonValue value)True or false to return the _source field or not, or a list of fields to returnExplainRequest.BuildersourceExcludes(java.lang.String... value)A list of fields to exclude from the returned _source fieldExplainRequest.BuildersourceExcludes(java.util.List<java.lang.String> value)A list of fields to exclude from the returned _source fieldExplainRequest.BuildersourceIncludes(java.lang.String... value)A list of fields to extract and return from the _source fieldExplainRequest.BuildersourceIncludes(java.util.List<java.lang.String> value)A list of fields to extract and return from the _source fieldExplainRequest.BuilderstoredFields(java.lang.String... value)A comma-separated list of stored fields to return in the responseExplainRequest.BuilderstoredFields(java.util.List<java.lang.String> value)A comma-separated list of stored fields to return in the responseExplainRequest.Buildertype(java.lang.String value)The type of the documentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The document IDAPI name:
id -
index
Required - The name of the indexAPI name:
index -
type
The type of the documentAPI name:
type -
analyzer
The analyzer for the query string queryAPI name:
analyzer -
analyzeWildcard
Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)API name:
analyze_wildcard -
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 -
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 -
routing
Specific routing valueAPI name:
routing -
source
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_excludes -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
addSourceExcludes
Add a value tosourceExcludes(List), creating the list if needed. -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
addSourceIncludes
Add a value tosourceIncludes(List), creating the list if needed. -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields -
addStoredFields
Add a value tostoredFields(List), creating the list if needed. -
q
Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
query
public ExplainRequest.Builder query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:query -
build
Builds aExplainRequest.- Specified by:
buildin interfaceObjectBuilder<ExplainRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-