Search Postgresql Archives

tsearch2 and parsing host strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A question related to tsearch2 functionality in postgres:

When I run the following query:

select to_tsvector('default', 'website.com')

I get "' website.com':1".

What I need to get back is 'website':1 instead. I can see that the parser correctly determines term website.com as a host token, which then are routed (on my, and I believe default, configuration) to 'default' dictionary (en_stem for me). Has anyone written a special dictionary for cases just like the above, so that I could change the pg_ts_cfgmap to map it to that special dictionary?

Is there any way I can accomplish this with tsearch2?


Thanks,

Laimis

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux