Searching a DB index.. possible?

From: Moe <mohamed5432154321(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Searching a DB index.. possible?
Date: 2010-02-05 15:48:09
Message-ID: 861fed221002050748k5ccaa04tdfb3ad90f2da0597@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am trying to figure out how I can introduce full text search "tips"...
tips meaning, like if you start typing Mer ..
then a box with a couple of words underneath comes up, with *Mercedes,
Mercury *and so on :P

I am thinking that the word suggestions needs to come from the already
existing tsearch2 index.
Words that are frequent in the index could be ranked higher as a search tip.

Is there a way to query the actual existing index?

How else could one approach this? There are many sites that uses this, so
perhaps there is an easier way I haven't thought of yet.

Thank you / Moe

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2010-02-05 17:02:56 Understanding pg_stat_user_indexes
Previous Message Merlin Moncure 2010-02-05 15:08:11 Re: Verify a record has a column in a plpgsql trigger