简体   繁体   中英

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.

也许您可以尝试将ISpell词典用于postgresql或Tsearch2 ,它具有一些拼写校正模块

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM