pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: pgsql-sql@postgresql.org
Subject: Comparing tsearch2 vectors.
Date: Mon, 12 Jul 2004 14:16:06 +0530
Message-ID: <40F24FCE.3020103@trade-india.com> (raw)


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/			    |
+---------------------------------------------------+




view thread (8+ messages)  latest in thread

Message-ID: <40F24FCE.3020103@trade-india.com>
Permalink:  ../40F24FCE.3020103@trade-india.com/
Also on:    postgresql.org/message-id/40F24FCE.3020103@trade-india.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah@trade-india.com
  Subject: Re: Comparing tsearch2 vectors.
  In-Reply-To: <40F24FCE.3020103@trade-india.com>

* 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