Module
BoostingQuery
BoostingQuery ( positiveQry, negativeQry, negativeBoost )
Constructs a query that can demote search results. A negative boost.
|
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 | negative(oQuery) | Sets the query used to match documents in the positive
query that will be negatively boosted. |
Object | negativeBoost(boost) | Sets the negative boost value. |
Object | positive(oQuery) | Sets the "master" query that determines which results are returned. |
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 .
|
negative
Object negative ( oQuery )
Sets the query used to match documents in the positive
query that will be negatively boosted.
|
negativeBoost
Object negativeBoost ( boost )
Sets the negative boost value.
|
positive
Object positive ( oQuery )
Sets the "master" query that determines which results are returned.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|