Class ExplainRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch._core.ExplainRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class ExplainRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExplainRequest.BuilderBuilder forExplainRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ExplainRequest>_DESERIALIZERJson deserializer forExplainRequest -
Constructor Summary
Constructors Constructor Description ExplainRequest(ExplainRequest.Builder builder)ExplainRequest(java.util.function.Function<ExplainRequest.Builder,ExplainRequest.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringanalyzer()The analyzer for the query string queryjava.lang.BooleananalyzeWildcard()Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)static <TDocument>
Endpoint<ExplainRequest,ExplainResponse<TDocument>,ElasticsearchError>createExplainEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "explain" endpoint.DefaultOperatordefaultOperator()The default operator for query string query (AND or OR)java.lang.Stringdf()The default field for query string query (default: _all)java.lang.Stringid()Required - The document IDjava.lang.Stringindex()Required - The name of the indexjava.lang.Booleanlenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredjava.lang.Stringpreference()Specify the node or shard the operation should be performed on (default: random)java.lang.Stringq()Query in the Lucene query string syntaxQueryquery()API name:queryjava.lang.Stringrouting()Specific routing valuevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupExplainRequestDeserializer(DelegatingDeserializer<ExplainRequest.Builder> op)jakarta.json.JsonValuesource()True or false to return the _source field or not, or a list of fields to returnjava.util.List<java.lang.String>sourceExcludes()A list of fields to exclude from the returned _source fieldjava.util.List<java.lang.String>sourceIncludes()A list of fields to extract and return from the _source fieldjava.util.List<java.lang.String>storedFields()A comma-separated list of stored fields to return in the responsejava.lang.Stringtype()The type of the documentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forExplainRequest
-
-
Constructor Details
-
ExplainRequest
-
ExplainRequest
public ExplainRequest(java.util.function.Function<ExplainRequest.Builder,ExplainRequest.Builder> fn)
-
-
Method Details
-
id
public java.lang.String id()Required - The document IDAPI name:
id -
index
public java.lang.String index()Required - The name of the indexAPI name:
index -
type
@Nullable public java.lang.String type()The type of the documentAPI name:
type -
analyzer
@Nullable public java.lang.String analyzer()The analyzer for the query string queryAPI name:
analyzer -
analyzeWildcard
@Nullable public java.lang.Boolean 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
@Nullable public java.lang.String df()The default field for query string query (default: _all)API name:
df -
lenient
@Nullable public java.lang.Boolean lenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredAPI name:
lenient -
preference
@Nullable public java.lang.String preference()Specify the node or shard the operation should be performed on (default: random)API name:
preference -
routing
@Nullable public java.lang.String routing()Specific routing valueAPI name:
routing -
source
@Nullable public jakarta.json.JsonValue source()True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
@Nullable public java.util.List<java.lang.String> sourceExcludes()A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
sourceIncludes
@Nullable public java.util.List<java.lang.String> sourceIncludes()A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
storedFields
@Nullable public java.util.List<java.lang.String> storedFields()A comma-separated list of stored fields to return in the responseAPI name:
stored_fields -
q
@Nullable public java.lang.String q()Query in the Lucene query string syntaxAPI name:
q -
query
API name:query -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupExplainRequestDeserializer
protected static void setupExplainRequestDeserializer(DelegatingDeserializer<ExplainRequest.Builder> op) -
createExplainEndpoint
public static <TDocument> Endpoint<ExplainRequest,ExplainResponse<TDocument>,ElasticsearchError> createExplainEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer)Create an "explain" endpoint.
-