Module
FilteredQuery
FilteredQuery ( someQuery, someFilter )
A query that applies a filter to the results of another query.
|
Method Summary
Returns | Name | Description |
---|---|---|
String | _type() | The type of ejs object. For internal use only. |
Object | boost(boost) | Sets the boost value for documents matching the Query . |
Object | cache(trueFalse) | Enables caching of the filter. |
Object | cacheKey(k) | Set the cache key. |
Object | filter(oFilter) | Adds the filter to apply a constant score to. |
Object | query(oQuery) | Adds the query to apply a constant score to. |
Object | strategy(strategy) | Sets the filter strategy. The strategy defines how the filter is applied during document collection. Valid values are:
This is an advanced setting, use with care. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Method Detail
boost
Object boost ( boost )
Sets the boost value for documents matching the Query .
|
cache
Object cache ( trueFalse )
Enables caching of the filter.
|
cacheKey
Object cacheKey ( k )
Set the cache key.
|
filter
Object filter ( oFilter )
Adds the filter to apply a constant score to.
|
query
Object query ( oQuery )
Adds the query to apply a constant score to.
|
strategy
Object strategy ( strategy )
Sets the filter strategy. The strategy defines how the filter is applied during document collection. Valid values are:
This is an advanced setting, use with care.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|