tsearch2 headline() query subselect help

Поиск
Список
Период
Сортировка
От John Smith
Тема tsearch2 headline() query subselect help
Дата
Msg-id f029597e0701101614q1d68e19cl73be5dbd9cd787d6@mail.gmail.com
обсуждение исходный текст
Ответы Re: tsearch2 headline() query subselect help  (Jeff Davis <pgsql@j-davis.com>)
Re: tsearch2 headline() query subselect help  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
        guys,
        how'd i make this query work?
        select headline(select column_1 from table_1 where to_tsvector(column_1) @@ to_tsquery('ftp'),'ftp'::tsquery);
        ERROR:  syntax error at or near "select" at character 17
        
        when i break it, it works fine, like so
        # select headline('ftp sftp','ftp'::tsquery);
        headline
        ----------
        <b>ftp</b> sftp
        (1 row)
        # select column_1 from table_1 where to_tsvector(column_1) @@ to_tsquery('ftp');
        column_1
        ----------
        ftp sftp
        (1 row)
        where
        # select column_1 from table_1 where column_index=1;
        column_1
        ----------
        ftp sftp
        (1 row)
        
        and how'd i add rank() to this query?
        jzs
        http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/

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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Problems With VIEWS
Следующее
От: "Tomas Lanczos"
Дата:
Сообщение: Moving the database from winxp to linux