Re: tsearch2 dictionary that indexes substrings?

From: Listmail <lists(at)peufeu(dot)com>
To: "Tilmann Singer" <tils-pgsql(at)tils(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: tsearch2 dictionary that indexes substrings?
Date: 2007-04-20 17:51:21
Message-ID: op.tq3fvvtnzcizji@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> I'm aware of that and in my case I don't think it will be a
> problem. It is for a type-ahead search web interface so actually it
> only requires indexing all possible substrings starting from char 1,
> ie. p, po, pos, post, postg, postgr, postgre, postgres, postgresq,
> postgresql.

If you want to provide autocompletion, you could build a list of unique
lexemes from inserted posts, and use a btree index and LIKE...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2007-04-20 18:28:03 Re: Technical Documentation and Community Login
Previous Message Magnus Hagander 2007-04-20 17:48:28 Re: Technical Documentation and Community Login