Class ExplainRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ExplainRequest
- All Implemented Interfaces:
JsonpSerializable
Explain a document match result. Get information about why a specific
document matches, or doesn't match, a query. It computes a score explanation
for a query and a specific document.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ExplainRequest>Json deserializer forExplainRequeststatic final SimpleEndpoint<ExplainRequest,?> Endpoint "explain". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringanalyzer()The analyzer to use for the query string.final BooleanIftrue, wildcard and prefix queries are analyzed.static <TDocument>
Endpoint<ExplainRequest,ExplainResponse<TDocument>, ErrorResponse> createExplainEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "explain" endpoint.final OperatorThe default operator for query string query:andoror.final Stringdf()The field to use as default where no field prefix is given in the query string.final Stringid()Required - The document identifier.final Stringindex()Required - Index names that are used to limit the request.final Booleanlenient()Iftrue, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.static ExplainRequestfinal StringThe node or shard the operation should be performed on.final Stringq()The query in the Lucene query string syntax.final Queryquery()Defines the search definition using the Query DSL.final Stringrouting()A custom value used to route operations to a specific shard.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal SourceConfigParamsource()Trueorfalseto return the_sourcefield or not or a list of fields to return.A comma-separated list of source fields to exclude from the response.A comma-separated list of source fields to include in the response.A comma-separated list of stored fields to return in the response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forExplainRequest -
_ENDPOINT
Endpoint "explain".
-
-
Method Details
-
of
-
source
Trueorfalseto 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. You can also use this parameter to exclude fields from the subset specified in_source_includesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_excludes -
sourceIncludes
A comma-separated list of source fields to include in the response. If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the_source_excludesquery parameter. If the_sourceparameter isfalse, this parameter is ignored.API name:
_source_includes -
analyzeWildcard
Iftrue, wildcard and prefix queries are analyzed. This parameter can be used only when theqquery string parameter is specified.API name:
analyze_wildcard -
analyzer
The analyzer to use for the query string. This parameter can be used only when theqquery string parameter is specified.API name:
analyzer -
defaultOperator
The default operator for query string query:andoror. This parameter can be used only when theqquery string parameter is specified.API name:
default_operator -
df
The field to use as default where no field prefix is given in the query string. This parameter can be used only when theqquery string parameter is specified.API name:
df -
id
Required - The document identifier.API name:
id -
index
Required - Index names that are 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. This parameter can be used only when theqquery string parameter is specified.API name:
lenient -
preference
The node or shard the operation should be performed on. It is random by default.API name:
preference -
q
The query in the Lucene query string syntax.API name:
q -
query
Defines the search definition using the Query DSL.API name:
query -
routing
A 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_fields -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupExplainRequestDeserializer
protected static void setupExplainRequestDeserializer(ObjectDeserializer<ExplainRequest.Builder> op) -
createExplainEndpoint
public static <TDocument> Endpoint<ExplainRequest,ExplainResponse<TDocument>, createExplainEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "explain" endpoint.
-