From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: Text search lexer's handling of hyphens and negatives
Date: Tue, 15 Oct 2019 15:35:03 -0700
Message-ID: <62ec72bf6b16aa980430e87ae54d6b8091ce8b73.camel@lists.simkin.ca> (raw)
In-Reply-To: <CAPD=2WFRaQk9LhocKPB-ewX9spRnWJwy=wFm8sm5L0yPqny1vA@mail.gmail.com>
References: <CAPD=2WFRaQk9LhocKPB-ewX9spRnWJwy=wFm8sm5L0yPqny1vA@mail.gmail.com>
On Tue, 2019-10-15 at 14:51 -0700, raylu wrote:
> Are we missing something here? Is there either a way to
> 1. generate tsvectors without this special (negative) integer behavior or
> 2. generate tsqueries in a more intelligent way?
>
My company has found the pg_trm extension to be more useful for partial
text searches than the full text functions. I don't know specifically
how it might help with your hyphens but it would be worth testing. The
docs actually suggest using them in conjunction in some cases.
https://www.postgresql.org/docs/11/pgtrgm.html
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ahodgson@lists.simkin.ca
Subject: Re: Text search lexer's handling of hyphens and negatives
In-Reply-To: <62ec72bf6b16aa980430e87ae54d6b8091ce8b73.camel@lists.simkin.ca>
References: <CAPD=2WFRaQk9LhocKPB-ewX9spRnWJwy=wFm8sm5L0yPqny1vA@mail.gmail.com> <62ec72bf6b16aa980430e87ae54d6b8091ce8b73.camel@lists.simkin.ca>
* 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