Pike v8.0 release 1738

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, void|Search.Database.Base db, void|array(int)|mapping(string:int) field_ranking)

Description

cutoff defaults to 8, proximity_ranking defaults to ({ 8, 7, 6, 5, 4, 3, 2, 1, }) and field_ranking defaults to ({ 17, 0, 147 }) + allocate(62). db is only needed if field_ranking is provided as a mapping.