C# Class Rubber.DSL.Facet.QueryFacetBuilder

Inheritance: AbstractFacetBuilder
Datei anzeigen Open project: stephenpope/Rubber

Public Methods

Method Description
FacetFilter ( IFilterBuilder filter ) : QueryFacetBuilder

An additional filter used to further filter down the set of documents the facet will run on.

Global ( bool global ) : QueryFacetBuilder

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.

Nested ( string nested ) : QueryFacetBuilder

Sets the nested path the facet will execute on. A match (root object) will then cause all the nested objects matching the path to be computed into the facet.

Query ( IQueryBuilder query ) : QueryFacetBuilder
QueryFacetBuilder ( string name ) : Newtonsoft.Json.Linq
Scope ( string scope ) : QueryFacetBuilder

Marks the facet to run in a specific scope.

ToJsonObject ( ) : object

Method Details

FacetFilter() public method

An additional filter used to further filter down the set of documents the facet will run on.
public FacetFilter ( IFilterBuilder filter ) : QueryFacetBuilder
filter IFilterBuilder
return QueryFacetBuilder

Global() public method

Should the facet run in global mode (not bounded by the search query) or not (bounded by the search query). Defaults to false.
public Global ( bool global ) : QueryFacetBuilder
global bool
return QueryFacetBuilder

Nested() public method

Sets the nested path the facet will execute on. A match (root object) will then cause all the nested objects matching the path to be computed into the facet.
public Nested ( string nested ) : QueryFacetBuilder
nested string
return QueryFacetBuilder

Query() public method

public Query ( IQueryBuilder query ) : QueryFacetBuilder
query IQueryBuilder
return QueryFacetBuilder

QueryFacetBuilder() public method

public QueryFacetBuilder ( string name ) : Newtonsoft.Json.Linq
name string
return Newtonsoft.Json.Linq

Scope() public method

Marks the facet to run in a specific scope.
public Scope ( string scope ) : QueryFacetBuilder
scope string
return QueryFacetBuilder

ToJsonObject() public method

public ToJsonObject ( ) : object
return object