Module
IndicesFilter
IndicesFilter ( fltr, indices )
A configurable filter that is dependent on the index name.
|
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 | filter(f) | Sets the filter to be used when executing on one of the indicies specified. |
Object | indices(i) | Sets the indicies the filter should match. When passed a string, the index name is added to the current list of indices. When passed an array, it overwites all current indices. |
Object | name(name) | Sets the filter name. |
Object | noMatchFilter(f) | Sets the filter to be used on an index that does not match an index name in the indices list. Can also be set to "none" to not match any documents or "all" to match all documents. |
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.
|
filter
Object filter ( f )
Sets the filter to be used when executing on one of the indicies
specified.
|
indices
Object indices ( i )
Sets the indicies the filter should match. When passed a string,
the index name is added to the current list of indices. When passed
an array, it overwites all current indices.
|
name
Object name ( name )
Sets the filter name.
|
noMatchFilter
Object noMatchFilter ( f )
Sets the filter to be used on an index that does not match an index
name in the indices list. Can also be set to "none" to not match any
documents or "all" to match all documents.
|