Module
TopChildrenQuery
TopChildrenQuery ( qry, type )
Returns child documents matching the query aggregated into the parent docs.
|
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 | factor(f) | Sets the factor which is the number of hits that are asked for in the child query. Defaults to 5. |
Object | incrementalFactor(f) | Sets the incremental factor. The incremental factor is used when not enough child documents are returned so the factor is multiplied by the incremental factor to fetch more results. Defaults to 52 |
Object | query(q) | Sets the query |
Object | scope(s) | Sets the scope of the query. A scope allows to run facets on the same scope name that will work against the child documents. |
Object | score(s) | Sets the scoring type. Valid values are max, sum, or avg. If another value is passed it we silently ignore the value. |
Object | scoreMode(s) | Sets the scoring type. Valid values are max, sum, total, or avg. If another value is passed it we silently ignore the value. |
String | toJSON() | Retrieves the internal query object. This is typically used by
internal API functions so use with caution. |
Object | type(t) | Sets the child document type to search against |
Method Detail
boost
Object boost ( boost )
Sets the boost value for documents matching the Query .
|
factor
Object factor ( f )
Sets the factor which is the number of hits that are asked for in
the child query. Defaults to 5.
|
incrementalFactor
Object incrementalFactor ( f )
Sets the incremental factor. The incremental factor is used when not
enough child documents are returned so the factor is multiplied by
the incremental factor to fetch more results. Defaults to 52
|
query
Object query ( q )
Sets the query
|
scope
Object scope ( s )
Sets the scope of the query. A scope allows to run facets on the
same scope name that will work against the child documents.
|
score
Object score ( s )
Sets the scoring type. Valid values are max, sum, or avg. If
another value is passed it we silently ignore the value.
|
scoreMode
Object scoreMode ( s )
Sets the scoring type. Valid values are max, sum, total, or avg.
If another value is passed it we silently ignore the value.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|
type
Object type ( t )
Sets the child document type to search against
|