Re: Full text search ranking: ordering using index and proximiti ranking with OR queries

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andrey Chursin <andll(at)danasoft(dot)ws>
Cc: Nicolas Grilly <nicolas(at)gardentechno(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Full text search ranking: ordering using index and proximiti ranking with OR queries
Date: 2012-11-16 19:25:35
Message-ID: CAHyXU0xG1PBqB8muQDOe=1xESvAK8HciAVP0KGuQhGptM4onww@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2012-11-16 19:35:29 Noticed something odd with pgbench
Previous Message Merlin Moncure 2012-11-16 19:19:18 Re: High SYS CPU - need advise