Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xz7bh-0005Cc-9Q for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Dec 2014 17:32:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xz7bf-0007rD-VZ for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Dec 2014 17:32:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xz7bY-0007cQ-5c for pgsql-bugs@postgresql.org; Thu, 11 Dec 2014 17:32:44 +0000 Received: from outmail149058.authsmtp.co.uk ([62.13.149.58]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xz7bR-0008LR-F7 for pgsql-bugs@postgresql.org; Thu, 11 Dec 2014 17:32:40 +0000 Received: from mail-c235.authsmtp.com (mail-c235.authsmtp.com [62.13.128.235]) by punt14.authsmtp.com (8.14.2/8.14.2) with ESMTP id sBBHWavj005728; Thu, 11 Dec 2014 17:32:36 GMT Received: from alvin.alvh.no-ip.org (client-186-37-106-102.imovil.entelpcs.cl [186.37.106.102] (may be forged)) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id sBBHWSJ0045709; Thu, 11 Dec 2014 17:32:31 GMT Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id D32B2792; Thu, 11 Dec 2014 14:32:37 -0300 (CLST) Date: Thu, 11 Dec 2014 14:32:37 -0300 From: Alvaro Herrera To: prasanna@semantifi.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12204: Getting wrong results from full text search Message-ID: <20141211173237.GJ1768@alvh.no-ip.org> References: <20141211133648.2521.73908@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20141211133648.2521.73908@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Server-Quench: aff9a703-815b-11e4-b396-002590a15da7 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZcSBoa BzkeAQdJTRslYBtL RB4bawxAL0wMSABN M15eIxoJcUtFHBZ1 VjUUWVRVVE1wXml2 aQBSb0tcakxQXAJ0 UUhPXFNSFhptCRse BlBdIGsKEGY8eH50 YEFiVz5ZWEN8Oxcr FEcFEm0FeG9hbTIC UUENcx4GcwpMYx9F aFV2VCIMZDFWYTQC El17DBoMEg5qYA5o bUlGdAhIGRpZVhEx WwwDGzpnAlcCQSp7 NRE9N1oABw4fKEI3 eVU8XVZQLxICFkVF EkhXCy8x X-Authentic-SMTP: 61633235383639.1023:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 186.37.106.102/587 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs