tadmin,
http://www.postgresql.org/docs/9.4/static/textsearch-controls.htmlну, если быть точными, то позиции нам нужны тут
12.3.3. Ranking Search Results
ts_rank_cd
бла бла
This function requires lexeme positional information to perform its calculation.
--
но. тут же читаем:
"
However, the concept of relevancy is vague and very application-specific. Different applications might require additional information for ranking, e.g., document modification time. The built-in ranking functions are only examples. You can write your own ranking functions and/or combine their results with additional factors to fit your specific needs.
"
You can write your own ranking functions
в приделах движка, да.
--
но интересно, где вам надо такую "точную" релевантность. чем плохо показать и
автор |
---|
"мамин халат" и "Мамин-Сибиряк" |
сразу. Юзер и сам не знает, что ему надо, а уж мы и тем более. пусть решает может сам юзер?