Обсуждение: Text search configuration

Поиск
Список
Период
Сортировка

Text search configuration

От
"Pedro Stavrinides"
Дата:
Hi All,

This is my first post to this mailing list, so apologies if I am sending my message to the incorrect place...

My question: I have configured a very basic text search for our application, but got stuck at the point where I need the search vector to filter out some unwanted text (HTML tags and special characters etc.). I have been through the docs and think I have a basic understanding...  it appears that I need to write a parser? Or is there something simpler? I couldn't find an examples, so any advise would be much appreciated before I start.

Thanks,
Peter

 

Re: Text search configuration

От
Oleg Bartunov
Дата:
On Tue, 2 Sep 2008, Pedro Stavrinides wrote:

> Hi All,
>
> This is my first post to this mailing list, so apologies if I am sending my
> message to the incorrect place...
>
> My question: I have configured a very basic text search for our application,
> but got stuck at the point where I need the search vector to filter out some
> unwanted text (HTML tags and special characters etc.). I have been through
> the docs and think I have a basic understanding...  it appears that I need
> to write a parser? Or is there something simpler? I couldn't find an
> examples, so any advise would be much appreciated before I start.

you don't need special parser, just to *include* what you need into your
configuration. See example
http://www.postgresql.org/docs/8.3/static/textsearch-configuration.html

>
> Thanks,
> Peter
>

     Regards,
         Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83