tsearch2 keep throw-away characters

Поиск
Список
Период
Сортировка
От Kimball
Тема tsearch2 keep throw-away characters
Дата
Msg-id a050b8390705151814i4c1c14daw7251f021b66d8cb6@mail.gmail.com
обсуждение исходный текст
Ответы Re: tsearch2 keep throw-away characters  ("Ivan Zolotukhin" <ivan.zolotukhin@gmail.com>)
Список pgsql-general

postgres=# select to_tsvector('default','I know how to code in C#, java and C++');
             to_tsvector
-------------------------------------
'c':7,10 'code':5 'java':8 'know':2
(1 row)

postgres=# select to_tsvector('simple','I know how to code in C#, java and C++');
                               to_tsvector
-------------------------------------------------------------------------
'c':7,10 'i':1 'in':6 'to':4 'and':9 'how':3 'code':5 'java':8 'know':2
(1 row)


I'd like to get lexemes/tokens 'c#' and 'c++' out of this query.  Everything I can find has to do with stop words.   How do I keep characters that tsearch throws out?  I've already tried 'c\#' and 'c\\#' etc, which don't work. 

Kimball

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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Data replication through disk replication
Следующее
От: woodb@niwa.co.nz
Дата:
Сообщение: Re: basic postgres questions...