Search Postgresql Archives

Re: Question about fulltext search and to_tsvector function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike Christensen <imaudi@xxxxxxxxxxx> writes:
> Okay this one's driving me crazy.
> Should there be any difference between the following queries:

> SELECT R.Title FROM Recipes R
> WHERE (to_tsvector('english', title || description) @@ 
> plainto_tsquery('Cake'));

> and

> SELECT R.Title FROM Recipes R
> WHERE (to_tsvector('english', description || title) @@ 
> plainto_tsquery('Cake'));

Maybe it would be better to do description || ' ' || title ?
I suspect that 'Cake' is getting run together with some other
word in some of your rows ...

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux