X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A0B9FD1B267 for ; Mon, 12 Jul 2004 05:46:14 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01375-07 for ; Mon, 12 Jul 2004 08:46:17 +0000 (GMT) Received: from trade-india.com (unknown [61.16.154.82]) by svr1.postgresql.org (Postfix) with SMTP id B6652D1B266 for ; Mon, 12 Jul 2004 05:46:06 -0300 (ADT) Received: (qmail 22338 invoked from network); 12 Jul 2004 08:44:46 -0000 Received: from valium.trade-india-local.com (HELO ?192.168.0.100?) (192.168.0.100) by system66.trade-india-local.com with SMTP; 12 Jul 2004 08:44:46 -0000 Message-ID: <40F24FCE.3020103@trade-india.com> Date: Mon, 12 Jul 2004 14:16:06 +0530 From: Rajesh Kumar Mallah User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Comparing tsearch2 vectors. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/63 X-Sequence-Number: 18315 Hi, We want to compare strings after stemming. Can anyone tell me what is the best method. I was thinking to compare the tsvector ,but there is no operator for that. Regds Mallah. tradein_clients=# SELECT to_tsvector('handicraft exporters'); +---------------------------+ | to_tsvector | +---------------------------+ | 'export':2 'handicraft':1 | +---------------------------+ (1 row) Time: 710.315 ms tradein_clients=# tradein_clients=# SELECT to_tsvector('handicrafts exporter'); +---------------------------+ | to_tsvector | +---------------------------+ | 'export':2 'handicraft':1 | +---------------------------+ (1 row) Time: 400.679 ms tradein_clients=# SELECT to_tsvector('Hi there') = to_tsvector('Hi there'); ERROR: operator does not exist: tsvector = tsvector HINT: No operator matches the given name and argument type(s). You may need to add explicit type casts. tradein_clients=# -- regds Mallah. Rajesh Kumar Mallah +---------------------------------------------------+ | Tradeindia.com (3,11,246) Registered Users | | Indias' Leading B2B eMarketPlace | | http://www.tradeindia.com/ | +---------------------------------------------------+