Class ValidateQueryRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder<ValidateQueryRequest,ValidateQueryResponse,ValidateQueryRequestBuilder>
org.elasticsearch.action.admin.indices.validate.query.ValidateQueryRequestBuilder
public class ValidateQueryRequestBuilder
extends BroadcastOperationRequestBuilder<ValidateQueryRequest,ValidateQueryResponse,ValidateQueryRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionValidateQueryRequestBuilder(ElasticsearchClient 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 queriesThe types of documents the query will run against.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions, setTimeout
-
Constructor Details
-
ValidateQueryRequestBuilder
-
-
Method Details
-
setTypes
The types of documents the query will run against. Defaults to all types. -
setQuery
The query to validate.- See Also:
QueryBuilders
-
setExplain
Indicates if detailed information about the query should be returned.- See Also:
QueryBuilders
-
setRewrite
Indicates whether the query should be rewritten into primitive queries -
setAllShards
Indicates whether the query should be validated on all shards
-