org.elasticsearch.index.query
Class IndicesQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseQueryBuilder
      extended by org.elasticsearch.index.query.IndicesQueryBuilder
All Implemented Interfaces:
ToXContent, QueryBuilder

public class IndicesQueryBuilder
extends BaseQueryBuilder

A query that will execute the wrapped query only for the specified indices, and "match_all" when it does not match those indices.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
IndicesQueryBuilder(QueryBuilder queryBuilder, java.lang.String... indices)
           
 
Method Summary
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 
Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder
buildAsBytes, buildAsBytes, buildAsUnsafeBytes, buildAsUnsafeBytes, toString, toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndicesQueryBuilder

public IndicesQueryBuilder(QueryBuilder queryBuilder,
                           java.lang.String... indices)
Method Detail

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws java.io.IOException
Specified by:
doXContent in class BaseQueryBuilder
Throws:
java.io.IOException