Module
TermsFilter
TermsFilter ( field, terms )
A Filter that matches documents containing provided terms.
|
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 | cacheLookup(trueFalse) | Enable or disable caching of the lookup |
Object | execution(e) | Sets the way terms filter executes is by iterating over the terms provided and finding matches docs (loading into a bitset) and caching it. Valid values are: plain, bool, bool_nocache, and, and_nocache, or, or_nocache. Defaults to plain. |
Object | field(f) | Sets the fields to filter against. |
Object | id(id) | Sets the document id of the document containing the terms to use when performing a terms lookup. |
Object | index(idx) | Sets the index the document containing the terms is in when performing a terms lookup. Defaults to the index currently being searched. |
Object | name(name) | Sets the filter name. |
Object | path(path) | Sets the path/field name where the terms in the source document are located when performing a terms lookup. |
Object | routing(path) | Sets the routing value for the source document when performing a terms lookup. |
Object | terms(t) | Sets the terms. If t is a String, it is added to the existing list of terms. If t is an array, the list of terms replaces the existing terms. |
Object | toJSON() | Returns the filter object. |
Object | type(type) | Sets the type the document containing the terms when performing a terms lookup. |
Method Detail
cache
Object cache ( trueFalse )
Enable or disable caching of the filter
|
cacheKey
Object cacheKey ( key )
Sets the cache key.
|
cacheLookup
Object cacheLookup ( trueFalse )
Enable or disable caching of the lookup
|
execution
Object execution ( e )
Sets the way terms filter executes is by iterating over the terms
provided and finding matches docs (loading into a bitset) and
caching it. Valid values are: plain, bool, bool_nocache, and,
and_nocache, or, or_nocache. Defaults to plain.
|
field
Object field ( f )
Sets the fields to filter against.
|
id
Object id ( id )
Sets the document id of the document containing the terms to use
when performing a terms lookup.
|
index
Object index ( idx )
Sets the index the document containing the terms is in when
performing a terms lookup. Defaults to the index currently
being searched.
|
name
Object name ( name )
Sets the filter name.
|
path
Object path ( path )
Sets the path/field name where the terms in the source document
are located when performing a terms lookup.
|
routing
Object routing ( path )
Sets the routing value for the source document when performing a
terms lookup.
|
terms
Object terms ( t )
Sets the terms. If t is a String, it is added to the existing
list of terms. If t is an array, the list of terms replaces the
existing terms.
|
type
Object type ( type )
Sets the type the document containing the terms when performing a
terms lookup.
|