Not. Inside the ts_rank function, there is no built-in method for ranking results using their global (corpus) frequency. However, the ranking algorithm is ranked by frequency within the document:
http://www.postgresql.org/docs/9.3/static/textsearch-controls.html
So, if I search for “dog | chihuahua”, the following two documents will have the same rank, despite the relatively low frequency of the word “chihuahua”:
"I want a dog" "I want a chihuahua"
However, the next line will receive a ranking higher than the previous two lines above, because the document contains two words "dog":
"dog lovers have an average of 1.5 dogs"
In short: a higher frequency in the document leads to a higher rank, but a lower frequency in the case does not affect.
One caveat: text search ignores stop words, so you won’t combine super high frequency words such as "the", "a", "of", "for", etc. (if you configured your language correctly)
source share