OSDN Git Service

Significantly improve ranking:
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 2 Mar 2006 19:07:19 +0000 (19:07 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 2 Mar 2006 19:07:19 +0000 (19:07 +0000)
commit38c4fe87ac86965253235edf46a5908e49c8478e
tree51b68da465c5c0a314594cc2e583de2673a63eea
parent85fa9f516c6e1d0fd30303a7cf1b182e1d7d69d9
Significantly improve ranking:
1) rank_cd now use weight of lexemes
2) rank_cd and rank can use any combination of normalization methods:
        no normalization
        normalization by log(length of document)
        -----/------- by length of document
        -----/------- by number of unique word in document
        -----/------- by log(number of unique word in document)
        -----/------- by number of covers (only rank_cd)

Improve cover's search.

TODO: changes in documentation
contrib/tsearch2/expected/tsearch2.out
contrib/tsearch2/rank.c
contrib/tsearch2/tsearch.sql.in