Module
IndicesQuery
IndicesQuery ( qry, indices )
A configurable query that is dependent on the index name.
|
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 | indices(i) | Sets the indicies the query 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 | noMatchQuery(q) | Sets the query 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 | query(q) | Sets the query to be executed against the indices specified. |
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 .
|
indices
Object indices ( i )
Sets the indicies the query 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.
|
noMatchQuery
Object noMatchQuery ( q )
Sets the query 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.
|
query
Object query ( q )
Sets the query to be executed against the indices specified.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|