Pike v8.0 release 1738

Method Search.RankingProfile()->create()


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.