org.elasticsearch.action.admin.indices.validate.query
Class ValidateQueryRequestBuilder

java.lang.Object
  extended by org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder<ValidateQueryRequest,ValidateQueryResponse>
      extended by org.elasticsearch.action.admin.indices.validate.query.ValidateQueryRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<ValidateQueryRequest,ValidateQueryResponse>

public class ValidateQueryRequestBuilder
extends BaseIndicesRequestBuilder<ValidateQueryRequest,ValidateQueryResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
ValidateQueryRequestBuilder(IndicesAdminClient client)
           
 
Method Summary
protected  void doExecute(ActionListener<ValidateQueryResponse> listener)
           
 ValidateQueryRequestBuilder setExplain(boolean explain)
          Indicates if detailed information about the query should be returned.
 ValidateQueryRequestBuilder setIgnoreIndices(IgnoreIndices ignoreIndices)
          Specifies what type of requested indices to ignore.
 ValidateQueryRequestBuilder setIndices(String... indices)
          Sets the indices the query validation will run against.
 ValidateQueryRequestBuilder setListenerThreaded(boolean threadedListener)
          Should the listener be called on a separate thread if needed.
 ValidateQueryRequestBuilder setOperationThreading(BroadcastOperationThreading operationThreading)
          Controls the operation threading model.
 ValidateQueryRequestBuilder setQuery(byte[] querySource)
          The query source to validate.
 ValidateQueryRequestBuilder setQuery(BytesReference querySource)
          The query source to validate.
 ValidateQueryRequestBuilder setQuery(BytesReference querySource, boolean unsafe)
          The query source to validate.
 ValidateQueryRequestBuilder setQuery(QueryBuilder queryBuilder)
          The query source to validate.
 ValidateQueryRequestBuilder setTypes(String... types)
          The types of documents the query will run against.
 
Methods inherited from class org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder
execute, execute, request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateQueryRequestBuilder

public ValidateQueryRequestBuilder(IndicesAdminClient client)
Method Detail

setIndices

public ValidateQueryRequestBuilder setIndices(String... indices)
Sets the indices the query validation will run against.


setTypes

public ValidateQueryRequestBuilder setTypes(String... types)
The types of documents the query will run against. Defaults to all types.


setQuery

public ValidateQueryRequestBuilder setQuery(QueryBuilder queryBuilder)
The query source to validate.

See Also:
QueryBuilders

setQuery

public ValidateQueryRequestBuilder setQuery(BytesReference querySource)
The query source to validate.

See Also:
QueryBuilders

setQuery

public ValidateQueryRequestBuilder setQuery(BytesReference querySource,
                                            boolean unsafe)
The query source to validate.

See Also:
QueryBuilders

setQuery

public ValidateQueryRequestBuilder setQuery(byte[] querySource)
The query source to validate.

See Also:
QueryBuilders

setExplain

public ValidateQueryRequestBuilder setExplain(boolean explain)
Indicates if detailed information about the query should be returned.

See Also:
QueryBuilders

setOperationThreading

public ValidateQueryRequestBuilder setOperationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model.


setListenerThreaded

public ValidateQueryRequestBuilder setListenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed.


setIgnoreIndices

public ValidateQueryRequestBuilder setIgnoreIndices(IgnoreIndices ignoreIndices)
Specifies what type of requested indices to ignore. For example indices that don't exist.


doExecute

protected void doExecute(ActionListener<ValidateQueryResponse> listener)
Specified by:
doExecute in class BaseIndicesRequestBuilder<ValidateQueryRequest,ValidateQueryResponse>


Copyright © 2009-2012. All Rights Reserved.