Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[GENERAL] Prefix search, word completion, full text search

From: Vincent Bernat <bernat(at)luffy.cx>
Date: Sat Dec 29 2007 - 14:38:57 EST


Hi !

I am playing with the new full text search in PostgreSQL 8.3. I would like to search for prefixes to allow to complete words. For example, if I have the lexemes 'foo', 'foobar' and 'bar', I would like to get all the words whose prefix is 'foo', i.e 'foo' and 'foobar'.

GIST or GIN (I don't remember) should allow to search for prefix. How can I query them?

Thanks.

-- 
BOFH excuse #348:
We're on Token Ring, and it looks like the token got loose.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               
http://archives.postgresql.org/
Received on Sat Dec 29 14:40:17 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 23:01:23 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library