开发者

How to Customize the full text search function provided by postgresql

I am trying to customize the postgresql full text search functionality so that

For example, I can enter "Stouffers" and get开发者_高级运维 a match on Stouffer's frozen foods. If I leave off one of the "f"s and spell it "Stoufers" I don't get a match. That's one of the things that the customized text search is supposed to handle. It converts all the text into a phonetic type code and searches on that.

Please help me in this how i can achive that. i found some help that i need to write a custom parser in C for doing this but i am very poor in C.


Maybe you can try using the ISpell dictionary for postgresql or Tsearch2 which has some spelling correction module.


Or get a standalone search engine such as Solr or Xapian with stemming, spelling, phonetic etc.
Django-haystack brings you both of them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜