Re: [PERFORM] Improve Full text rank in a query

2008-03-07 Thread Oleg Bartunov
On Fri, 7 Mar 2008, b wragg wrote: Hi all, I'm running the following query to match a supplied text string to an actual place name which is recorded in a table with extra info like coordinates, etc. SELECT ts_rank_cd(textsearchable_index_col , query, 32 /* rank/(rank+1) */) AS rank,* FROM gaze

Re: [PERFORM] Improve Full text rank in a query

2008-03-06 Thread Tom Lane
"b wragg" <[EMAIL PROTECTED]> writes: > I'm new to this, but I can't figure out why the "Gunbower Island Primary > School" is getting top place. How do I get the query to improve the ranking > so that an exact match (like "Gunbower|Island|Vic") gets a higher position? I'm new at this too, but AFAI

[PERFORM] Improve Full text rank in a query

2008-03-06 Thread b wragg
Hi all, I'm running the following query to match a supplied text string to an actual place name which is recorded in a table with extra info like coordinates, etc. SELECT ts_rank_cd(textsearchable_index_col , query, 32 /* rank/(rank+1) */) AS rank,* FROM gazetteer, to_tsquery('Gunbower|Island|Vic