On Wed, Mar 7, 2012 at 11:59 AM, Andrey Chursin <andll(at)danasoft(dot)ws> wrote:
> Is there any way to sort by ranking, avoiding seq scan?
> The only way i see now is to use pg_trgm instead of ts_rank, but we
> did not check yet how applicable is it for our purposes.
pg_tgrm works very well in terms of measuring similarity between two
ascii strings...many non-english languages will struggle. I doubt
(although I ever tried) it's useful for matching a small phrase to a
large document.
merlin