From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: prasanna@semantifi.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12204: Getting wrong results from full text search
Date: Thu, 11 Dec 2014 14:46:50 -0500
Message-ID: <5817.1418327210@sss.pgh.pa.us> (raw)
In-Reply-To: <20141211173237.GJ1768@alvh.no-ip.org>
References: <20141211133648.2521.73908@wrigleys.postgresql.org>
<20141211173237.GJ1768@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> prasanna@semantifi.com wrote:
>> select sckw.*
>> FROM semantified_content_key_word sckw
>> where TO_TSVECTOR(sckw.key_word_text) @@ TO_TSQUERY('exhausted');
>>
>> This is the query which i am running.And the keyword "exhausted" is present
>> only in one of the rows but i am getting all the 3 rows.
> My guess, without actual experimentation, is that "exhausted" stems down
> to "exhaust", which is present in the three provided rows.
Yeah. This is a feature, not a bug. If you don't want stemming to
happen, you should switch to a text search configuration that doesn't
do that. (I think the built-in "simple" configuration doesn't, but
in any case you could certainly construct one that doesn't.)
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, prasanna@semantifi.com
Subject: Re: BUG #12204: Getting wrong results from full text search
In-Reply-To: <5817.1418327210@sss.pgh.pa.us>
References: <20141211133648.2521.73908@wrigleys.postgresql.org> <20141211173237.GJ1768@alvh.no-ip.org> <5817.1418327210@sss.pgh.pa.us>
* 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