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
Constructors Constructor Description ValidateQueryRequestBuilder(ElasticsearchClient client, ValidateQueryAction action) -
Method Summary
Modifier and Type Method Description ValidateQueryRequestBuildersetAllShards(boolean rewrite)Indicates whether the query should be validated on all shardsValidateQueryRequestBuildersetExplain(boolean explain)Indicates if detailed information about the query should be returned.ValidateQueryRequestBuildersetQuery(QueryBuilder queryBuilder)The query to validate.ValidateQueryRequestBuildersetRewrite(boolean rewrite)Indicates whether the query should be rewritten into primitive queriesValidateQueryRequestBuildersetTypes(java.lang.String... types)The types of documents the query will run against.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions, setTimeoutMethods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-