Class ValidateQueryRequestBuilder
java.lang.Object
org.opensearch.action.ActionRequestBuilder<ValidateQueryRequest,ValidateQueryResponse>
org.opensearch.action.support.broadcast.BroadcastOperationRequestBuilder<ValidateQueryRequest,ValidateQueryResponse,ValidateQueryRequestBuilder>
org.opensearch.action.admin.indices.validate.query.ValidateQueryRequestBuilder
@PublicApi(since="1.0.0")
public class ValidateQueryRequestBuilder
extends BroadcastOperationRequestBuilder<ValidateQueryRequest,ValidateQueryResponse,ValidateQueryRequestBuilder>
Transport Request Builder to Validate a Query
- Opensearch.api:
-
Field Summary
Fields inherited from class org.opensearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionValidateQueryRequestBuilder
(OpenSearchClient client, ValidateQueryAction action) -
Method Summary
Modifier and TypeMethodDescriptionsetAllShards
(boolean rewrite) Indicates whether the query should be validated on all shardssetExplain
(boolean explain) Indicates if detailed information about the query should be returned.setQuery
(QueryBuilder queryBuilder) The query to validate.setRewrite
(boolean rewrite) Indicates whether the query should be rewritten into primitive queriesMethods inherited from class org.opensearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions
-
Constructor Details
-
ValidateQueryRequestBuilder
-
-
Method Details
-
setQuery
The query to validate.- See Also:
-
setExplain
Indicates if detailed information about the query should be returned.- See Also:
-
setRewrite
Indicates whether the query should be rewritten into primitive queries -
setAllShards
Indicates whether the query should be validated on all shards
-