C# Class Rubber.DSL.Query.IndicesQueryBuilder

A query that will execute the wrapped query only for the specified indices, and "match_all" when it does not match those indices (by default).
Inheritance: IQueryBuilder
Show file Open project: stephenpope/Rubber

Public Methods

Method Description
IndicesQueryBuilder ( IQueryBuilder queryBuilder ) : Newtonsoft.Json.Linq
NoMatchQuery ( IQueryBuilder noMatchQuery ) : IndicesQueryBuilder

Sets the query to use when it executes on an index that does not match the indices provided.

NoMatchQuery ( string type ) : IndicesQueryBuilder

Sets the no match query, can either be all or none.

ToJsonObject ( ) : object
ToString ( ) : string

Method Details

IndicesQueryBuilder() public method

public IndicesQueryBuilder ( IQueryBuilder queryBuilder ) : Newtonsoft.Json.Linq
queryBuilder IQueryBuilder
return Newtonsoft.Json.Linq

NoMatchQuery() public method

Sets the query to use when it executes on an index that does not match the indices provided.
public NoMatchQuery ( IQueryBuilder noMatchQuery ) : IndicesQueryBuilder
noMatchQuery IQueryBuilder
return IndicesQueryBuilder

NoMatchQuery() public method

Sets the no match query, can either be all or none.
public NoMatchQuery ( string type ) : IndicesQueryBuilder
type string
return IndicesQueryBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object

ToString() public method

public ToString ( ) : string
return string