Re: tsearch2: How to use different configurations for two columns?
В списке pgsql-general по дате отправления:
| От | Andrew J. Kopciuch |
|---|---|
| Тема | Re: tsearch2: How to use different configurations for two columns? |
| Дата | |
| Msg-id | 200512090913.45897.akopciuch@bddf.ca обсуждение исходный текст |
| Ответ на | tsearch2: How to use different configurations for two columns? (Stephan Vollmer <svollmer@gmx.de>) |
| Ответы |
Re: tsearch2: How to use different configurations for two columns?
|
| Список | pgsql-general |
> > The configuration seems to work fine, but I can't get tsearch2 to > use the 'author' config for column 'author_list' and 'default' > config for column 'title'. Is there any way to accomplish this? > It's totally possible. I don't think you can accomplish this using the simple tsearch triggers as you declared. The triggers fire using the configuration set by curcfg() or will search for the one matching your locale. You could write a one trigger for the table to handle both. So you would have one custom function that updates both tsvector columns with different configurations. Andy
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера