Class ValidateQueryRequestBuilder
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 queries... types)
The types of documents the query will run against.Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequestBuilder
setIndices, setIndicesOptions, setTimeout
Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
ValidateQueryRequestBuilder
-
-
Method Details
-
setTypes
public ... types)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
-