Re: Need help with full text index configuration
От | Brian Hirt |
---|---|
Тема | Re: Need help with full text index configuration |
Дата | |
Msg-id | 7ECCA59E-F5A5-4B21-A849-729794891CFC@mobygames.com обсуждение исходный текст |
Ответ на | Re: Need help with full text index configuration (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Need help with full text index configuration
|
Список | pgsql-general |
Tom, Thanks for the quick reply. Doing a frontend mapping was my next option since I really don't care about / and the abilityto search on it. Preventing the parser from using the file tokenizer seemed like a better solution so I wanted togo down that path first (there are other false hits i was worried about too, like email, etc) I'm really confused about what "ALTER TEXT SEARCH CONFIGURATION dict DROP MAPPING FOR file" actually does. The documentationseems to make it sound like it does what I want, but I guess it does something else. --brian On Jul 28, 2010, at 2:06 PM, Tom Lane wrote: > Brian Hirt <bhirt@mobygames.com> writes: >> For example instead of the parser recognizing three asciiword it recognizes one asciiword and one file. I'd like a wayto have the / just get parsed as blank. > > AFAIK the only good way to do that is to write your own parser :-(. > The builtin parser isn't really configurable. (If you didn't mind > maintaining a private version you could patch its state transition > table manually, but that seems like a PITA.) > > For the case at hand it could be a pretty thin frontend to the builtin > text parser --- just change / to space and then call the builtin one. > contrib/test_parser/ might help you get started. > > regards, tom lane >
В списке pgsql-general по дате отправления: