Re: Comparing tsearch2 vectors.

Поиск
Список
Период
Сортировка
От Achilleus Mantzios
Тема Re: Comparing tsearch2 vectors.
Дата
Msg-id Pine.LNX.4.44.0407121357050.3554-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответ на Comparing tsearch2 vectors.  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Ответы Re: Comparing tsearch2 vectors.
Список pgsql-sql
O kyrios Rajesh Kumar Mallah egrapse stis Jul 12, 2004 :

> 
> 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.

I'd tokenize each string and then apply lexize() to get the 
equivalent stemified 
word, but what exactly are you trying to accomplish?

> 
> 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=#
> 
> 

-- 
-Achilleus



В списке pgsql-sql по дате отправления:

Предыдущее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Comparing tsearch2 vectors.
Следующее
От: "SZŰCS Gábor"
Дата:
Сообщение: Re: Constraint->function dependency and dump in 7.3