Module
FunctionScoreQuery
FunctionScoreQuery ( )
A query that allows you to modify the score of matching documents. |
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 | boost(boost) | Sets the boost value for all documents matching the query. |
Object | boostMode(mode) | Set the setermines how the new calculated score is combined with the score from the original query. Valid values are: multiply, replace, sum, avg, max, and min. |
Object | filter(oFilter) | Set the source filter. |
Object | function(func) | Add a single score function to the list of existing functions. |
Object | functions(funcs) | Sets the score functions. Replaces any existing score functions. |
Object | maxBoost(maxBoost) | Sets the maximum boost value. |
Object | minScore(minScore) | Sets the minimum score a document should have to be included. |
Object | query(oQuery) | Set the source query. |
Object | scoreMode(mode) | Set the scoring mode which specifies how the computed scores are combined. Valid values are: avg, max, min, sum, multiply, and first. |
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 .
|
boost
Object boost ( boost )
Sets the boost value for all documents matching the query.
|
boostMode
Object boostMode ( mode )
Set the setermines how the new calculated score is combined with the
score from the original query. Valid values are: multiply, replace, sum,
avg, max, and min.
|
filter
Object filter ( oFilter )
Set the source filter.
|
function
Object function ( func )
Add a single score function to the list of existing functions.
|
functions
Object functions ( funcs )
Sets the score functions. Replaces any existing score functions.
|
maxBoost
Object maxBoost ( maxBoost )
Sets the maximum boost value.
|
minScore
Object minScore ( minScore )
Sets the minimum score a document should have to be included.
|
query
Object query ( oQuery )
Set the source query.
|
scoreMode
Object scoreMode ( mode )
Set the scoring mode which specifies how the computed scores are combined.
Valid values are: avg, max, min, sum, multiply, and first.
|
toJSON
String toJSON ( )
Retrieves the internal query object. This is typically used by
internal API functions so use with caution.
|