Module
BoolFilter
BoolFilter ( )
A Filter that matches documents matching boolean combinations of other
filters. |
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | cache(trueFalse) | Enable or disable caching of the filter |
Object | cacheKey(key) | Sets the cache key. |
Object | must(oFilter) | Adds filter to boolean container. Given filter "must" appear in matching documents. If passed a single Filter it is added to the list of existing filters. If passed an array of Filters, they replace all existing filters. |
Object | mustNot(oFilter) | Adds filter to boolean container. Given filter "must not" appear in matching documents. If passed a single Filter it is added to the list of existing filters. If passed an array of Filters, they replace all existing filters. |
Object | name(name) | Sets the filter name. |
Object | should(oFilter) | Adds filter to boolean container. Given filter "should" appear in matching documents. If passed a single Filter it is added to the list of existing filters. If passed an array of Filters, they replace all existing filters. |
Object | toJSON() | Returns the filter object. |
Method Detail
cache
Object cache ( trueFalse )
Enable or disable caching of the filter
|
cacheKey
Object cacheKey ( key )
Sets the cache key.
|
must
Object must ( oFilter )
Adds filter to boolean container. Given filter "must" appear in
matching documents. If passed a single Filter it is added to the
list of existing filters. If passed an array of Filters, they
replace all existing filters.
|
mustNot
Object mustNot ( oFilter )
Adds filter to boolean container. Given filter "must not" appear
in matching documents. If passed a single Filter it is added to
the list of existing filters. If passed an array of Filters,
they replace all existing filters.
|
name
Object name ( name )
Sets the filter name.
|
should
Object should ( oFilter )
Adds filter to boolean container. Given filter "should" appear in
matching documents. If passed a single Filter it is added to
the list of existing filters. If passed an array of Filters,
they replace all existing filters.
|