Re: Results in ERROR: syntax error in tsquery:

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема Re: Results in ERROR: syntax error in tsquery:
Дата
Msg-id CAF4Au4wY8Eq-1Q-q7rtLGHhKneD6GC_4w9opKweKNyRLiiqabA@mail.gmail.com
обсуждение исходный текст
Ответ на Results in ERROR: syntax error in tsquery:  (Kiran <bangalore.kiran@gmail.com>)
Ответы Re: Results in ERROR: syntax error in tsquery:  (Oleg Bartunov <obartunov@gmail.com>)
Список pgsql-general
On Mon, Sep 19, 2016 at 3:46 AM, Kiran <bangalore.kiran@gmail.com> wrote:
> Dear All,
>
> I have a ts_vector column in question table called weighted_tsv.
> I am trying to search using ts_query as follows
>
> SELECT *
>
> FROM question
>
> WHERE weighted_tsv @@ to_tsquery('Hur ofta');

you should use to_tsquery('Hur & ofta') ! Read
https://www.postgresql.org/docs/9.5/static/datatype-textsearch.html

>
>
> But the query results in an error as follows:
>
> ERROR:  function ts_query(unknown) does not exist
>
> LINE 1: ...* from question where weighted_tsv @@ ts_query('...
>
> HINT:  No function matches the given name and argument types. You might need
> to add explicit type casts.
>
>
> What is the reason I am getting this error I am not able to figure it out.
>
> It would be of great help if anyone point me into right direction.
>
>
> Thanks
>
> Kiran
>
>
>
>


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

Предыдущее
От: Kiran
Дата:
Сообщение: Results in ERROR: syntax error in tsquery:
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: Results in ERROR: syntax error in tsquery: