Searching a DB index.. possible? - Mailing list pgsql-general

From Moe
Subject Searching a DB index.. possible?
Date
Msg-id 861fed221002050748k5ccaa04tdfb3ad90f2da0597@mail.gmail.com
Whole thread Raw
Responses Re: Searching a DB index.. possible?  (Moe <mohamed5432154321@gmail.com>)
Re: Searching a DB index.. possible?  (Richard Huxton <dev@archonet.com>)
List 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

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Verify a record has a column in a plpgsql trigger
Next
From: Steve Crawford
Date:
Subject: Understanding pg_stat_user_indexes