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.Builder
addSourceExcludes(java.lang.String value)
Add a value tosourceExcludes(List)
, creating the list if needed.ExplainRequest.Builder
addSourceIncludes(java.lang.String value)
Add a value tosourceIncludes(List)
, creating the list if needed.ExplainRequest.Builder
addStoredFields(java.lang.String value)
Add a value tostoredFields(List)
, creating the list if needed.ExplainRequest.Builder
analyzer(java.lang.String value)
The analyzer for the query string queryExplainRequest.Builder
analyzeWildcard(java.lang.Boolean value)
Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)ExplainRequest
build()
Builds aExplainRequest
.ExplainRequest.Builder
defaultOperator(DefaultOperator value)
The default operator for query string query (AND or OR)ExplainRequest.Builder
df(java.lang.String value)
The default field for query string query (default: _all)ExplainRequest.Builder
id(java.lang.String value)
Required - The document IDExplainRequest.Builder
index(java.lang.String value)
Required - The name of the indexExplainRequest.Builder
lenient(java.lang.Boolean value)
Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredExplainRequest.Builder
preference(java.lang.String value)
Specify the node or shard the operation should be performed on (default: random)ExplainRequest.Builder
q(java.lang.String value)
Query in the Lucene query string syntaxExplainRequest.Builder
query(Query value)
API name:query
ExplainRequest.Builder
query(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
API name:query
ExplainRequest.Builder
routing(java.lang.String value)
Specific routing valueExplainRequest.Builder
source(jakarta.json.JsonValue value)
True or false to return the _source field or not, or a list of fields to returnExplainRequest.Builder
sourceExcludes(java.lang.String... value)
A list of fields to exclude from the returned _source fieldExplainRequest.Builder
sourceExcludes(java.util.List<java.lang.String> value)
A list of fields to exclude from the returned _source fieldExplainRequest.Builder
sourceIncludes(java.lang.String... value)
A list of fields to extract and return from the _source fieldExplainRequest.Builder
sourceIncludes(java.util.List<java.lang.String> value)
A list of fields to extract and return from the _source fieldExplainRequest.Builder
storedFields(java.lang.String... value)
A comma-separated list of stored fields to return in the responseExplainRequest.Builder
storedFields(java.util.List<java.lang.String> value)
A comma-separated list of stored fields to return in the responseExplainRequest.Builder
type(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:
build
in interfaceObjectBuilder<ExplainRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-