From: Peter Koczan <pjkoczan@gmail.com>
To: pgsql-sql@postgresql.org
Subject: tsearch2 and wildcards/pattern matching?
Date: Wed, 7 Jul 2010 15:41:23 -0500
Message-ID: <AANLkTimyzy0PZpnqAraoymmVnNBOZlFtFDWtAP9n5ADS@mail.gmail.com> (raw)
Hi all,
Is there any sort of pattern matching or partial matching capability
in tsearch2?
I'd like to be able search for a common prefix (like for order
numbers). For instance, tsearch2 will index 'zvt123456' or
'zvt555555', but I'd like to be able to find both of them in one query
using something akin to 'zvt%', like
select * from attachments where textsearchable @@ 'zvt%';
I've been unable to find anything in documentation. If there's
anything in tsearch2 that can do this and is faster than LIKE clauses
on full-text, that would be fantastic.
Cheers,
Peter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: pjkoczan@gmail.com
Subject: Re: tsearch2 and wildcards/pattern matching?
In-Reply-To: <AANLkTimyzy0PZpnqAraoymmVnNBOZlFtFDWtAP9n5ADS@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox