Module
QueryFacet
QueryFacet ( name )
A facet that return a count of the hits matching the given query.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | cacheFilter(trueFalse) | Enables caching of the |
Object | facetFilter(oFilter) | Allows you to reduce the documents used for computing facet results. |
Object | global(trueFalse) | Computes values across the entire index |
Object | mode(m) | Sets the mode the facet will use.
|
Object | nested(path) | Sets the path to the nested document if faceting against a nested field. |
Object | query(oQuery) | Sets the query to be used for this facet. |
Object | scope(scope) | Computes values across the the specified scope |
String | toJSON() | Retrieves the internal |
Method Detail
cacheFilter
Object cacheFilter ( trueFalse )
Enables caching of the
|
facetFilter
Object facetFilter ( oFilter )
Allows you to reduce the documents used for computing facet results.
|
global
Object global ( trueFalse )
Computes values across the entire index
|
mode
Object mode ( m )
Sets the mode the facet will use.
|
nested
Object nested ( path )
Sets the path to the nested document if faceting against a nested field.
|
query
Object query ( oQuery )
Sets the query to be used for this facet.
|
scope
Object scope ( scope )
Computes values across the the specified scope
|
toJSON
String toJSON ( )
Retrieves the internal
|