Class Search.RankingProfile


Variable cutoff

int Search.RankingProfile.cutoff


Variable field_ranking

array(int) Search.RankingProfile.field_ranking


Variable proximity_ranking

array(int) Search.RankingProfile.proximity_ranking


Method create

Search.RankingProfile Search.RankingProfile(void|int cutoff, void|array(int) proximity_ranking)
Search.RankingProfile Search.RankingProfile(int cutoff, array(int) proximity_ranking, Search.Database.Base db, array(int)|mapping(string:int) field_ranking)

Parameter cutoff

Defaults to 8

Parameter proximity_ranking

Defaults to ({ 8, 7, 6, 5, 4, 3, 2, 1, })

Parameter field_ranking

Defaults to ({ 17, 0, 147 }) + allocate(62).

Parameter db

Only needed if field_ranking is provided as a mapping.