ejsRandomScoreFunction

The random_score generates scores via a pseudo random number algorithm that is initialized with a seed.

Module

 RandomScoreFunction

RandomScoreFunction ( )

Randomly score documents.


Method Summary

Returns Name Description
String_type()The type of ejs object. For internal use only.
Objectfilter(oFilter)Adds a filter whose matching documents will have the score function applied.
Objectseed(s)Sets random seed value.
StringtoJSON()

Retrieves the internal agg object. This is typically used by internal API functions so use with caution.


Method Detail

 _type

String _type ( )
The type of ejs object. For internal use only.

Returns
the type of object

 filter

Object filter ( oFilter )
Adds a filter whose matching documents will have the score function applied.

Parameters
oFilter <Filter> Any valid Filter object.
Returns
returns this so that calls can be chained.

 seed

Object seed ( s )
Sets random seed value.

Parameters
s <Long> A seed value.
Returns
returns this so that calls can be chained.

 toJSON

String toJSON ( )

Retrieves the internal agg object. This is typically used by internal API functions so use with caution.


Returns
returns this object's internal object.

Request

Queries

Filters

Aggregations

Facets

Suggesters

Geo