Search Postgresql Archives

tsearch2 and colons or urls

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

 



I'm trying to do a full text search for URL's stored in a table.

SELECT *,headline(description,q), rank(vectors,q) FROM bb_item, to_tsquery('http://www.yahoo.com') AS q WHERE vectors @@ q ORDER BY rank(vectors,q) DESC LIMIT 10 OFFSET 0

I get a general syntax error. I know it;s the colon in the URL causing it, but what is the wise solution. ( Other than drop the http:// )


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

              http://www.postgresql.org/docs/faq

[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