tsearch2: how to plainto_tsquery() with "|"

Поиск
Список
Период
Сортировка
От John Smith
Тема tsearch2: how to plainto_tsquery() with "|"
Дата
Msg-id CAMZ8qd9ycQoHGtPodJU9X6F8YDdKr43yrKiQw89+V4GNhujq8w@mail.gmail.com
обсуждение исходный текст
Ответы Re: tsearch2: how to plainto_tsquery() with "|"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
i can run "...@@ to_tsquery('cat | dog')".

but if i run "...@@ to_tsquery('cat dog')", it gives me a syntax error (#42601).

so i run "...@@ plainto_tsquery('cat dog')".

but then i can't run "...@@ plainto_tsquery('cat | dog')".

can you help before i give up on tsearch2?

thks, jzs

http://postgresql.1045698.n5.nabble.com/tsearch2-plainto-tsquery-with-OR-td1885955.html
http://www.postgresql.org/docs/9.3/static/textsearch.html


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

Предыдущее
От: Joseph Kregloh
Дата:
Сообщение: Re: Upgrading from 9.2 to 9.3 causes performance degradation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tsearch2: how to plainto_tsquery() with "|"