public class ExplainRequestBuilder extends SingleShardOperationRequestBuilder<ExplainRequest,ExplainResponse,ExplainRequestBuilder>
ExplainRequest
.action, client, request
Constructor and Description |
---|
ExplainRequestBuilder(ElasticsearchClient client,
ExplainAction action,
java.lang.String index,
java.lang.String type,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
ExplainRequestBuilder |
setFetchSource(boolean fetch)
Indicates whether the response should contain the stored _source
|
ExplainRequestBuilder |
setFetchSource(java.lang.String[] includes,
java.lang.String[] excludes)
Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard
elements.
|
ExplainRequestBuilder |
setFetchSource(java.lang.String include,
java.lang.String exclude)
Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard
elements.
|
ExplainRequestBuilder |
setId(java.lang.String id)
Sets the id to get a score explanation for.
|
ExplainRequestBuilder |
setParent(java.lang.String parent)
Simple sets the routing.
|
ExplainRequestBuilder |
setPreference(java.lang.String preference)
Sets the shard preference.
|
ExplainRequestBuilder |
setQuery(QueryBuilder query)
Sets the query to get a score explanation for.
|
ExplainRequestBuilder |
setRouting(java.lang.String routing)
Sets the routing for sharding.
|
ExplainRequestBuilder |
setStoredFields(java.lang.String... fields)
Explicitly specify the stored fields that will be returned for the explained document.
|
ExplainRequestBuilder |
setType(java.lang.String type)
Sets the type to get a score explanation for.
|
setIndex, setOperationThreaded
beforeExecute, execute, execute, get, get, get, request
public ExplainRequestBuilder(ElasticsearchClient client, ExplainAction action, java.lang.String index, java.lang.String type, java.lang.String id)
public ExplainRequestBuilder setType(java.lang.String type)
public ExplainRequestBuilder setId(java.lang.String id)
public ExplainRequestBuilder setRouting(java.lang.String routing)
public ExplainRequestBuilder setParent(java.lang.String parent)
public ExplainRequestBuilder setPreference(java.lang.String preference)
public ExplainRequestBuilder setQuery(QueryBuilder query)
public ExplainRequestBuilder setStoredFields(java.lang.String... fields)
public ExplainRequestBuilder setFetchSource(boolean fetch)
public ExplainRequestBuilder setFetchSource(@Nullable java.lang.String include, @Nullable java.lang.String exclude)
include
- An optional include (optionally wildcarded) pattern to filter the returned _sourceexclude
- An optional exclude (optionally wildcarded) pattern to filter the returned _sourcepublic ExplainRequestBuilder setFetchSource(@Nullable java.lang.String[] includes, @Nullable java.lang.String[] excludes)
includes
- An optional list of include (optionally wildcarded) pattern to filter the returned _sourceexcludes
- An optional list of exclude (optionally wildcarded) pattern to filter the returned _source