Re: Text search lexer's handling of hyphens and negatives - Mailing list pgsql-general

From Alan Hodgson
Subject Re: Text search lexer's handling of hyphens and negatives
Date
Msg-id 62ec72bf6b16aa980430e87ae54d6b8091ce8b73.camel@lists.simkin.ca
Whole thread Raw
In response to Text search lexer's handling of hyphens and negatives  (raylu <lurayl@gmail.com>)
Responses Re: Text search lexer's handling of hyphens and negatives
List pgsql-general
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.

pgsql-general by date:

Previous
From: raylu
Date:
Subject: Text search lexer's handling of hyphens and negatives
Next
From: raylu
Date:
Subject: Re: Text search lexer's handling of hyphens and negatives