Pike v8.1 release 6

Method Search.RankingProfile()->create()


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.