Module
RegexpFilter
RegexpFilter ( field, value )
Matches documents that have fields matching a regular expression.
|
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 | field(f) | The field to run the filter against. |
Object | flags(f) | The regex flags to use. Valid flags are:
INTERSECTION - Support for intersection notation
COMPLEMENT - Support for complement notation
EMPTY - Support for the empty language symbol: #
ANYSTRING - Support for the any string symbol: @
INTERVAL - Support for numerical interval notation: |
Object | flagsValue(v) | The regex flags to use as a numeric value. Advanced use only,
it is probably better to stick with the flags option. |
Object | name(name) | Sets the filter name. |
Object | toJSON() | Returns the filter object. |
Object | value(p) | The regexp value. |
Method Detail
cache
Object cache ( trueFalse )
Enable or disable caching of the filter
|
cacheKey
Object cacheKey ( key )
Sets the cache key.
|
field
Object field ( f )
The field to run the filter against.
|
flags
Object flags ( f )
The regex flags to use. Valid flags are:
INTERSECTION - Support for intersection notation
COMPLEMENT - Support for complement notation
EMPTY - Support for the empty language symbol: #
ANYSTRING - Support for the any string symbol: @
INTERVAL - Support for numerical interval notation:
|
flagsValue
Object flagsValue ( v )
The regex flags to use as a numeric value. Advanced use only,
it is probably better to stick with the flags option.
|
name
Object name ( name )
Sets the filter name.
|
value
Object value ( p )
The regexp value.
|