开发者

Best Way to Implement Natural Language Search on a Site

I implemented a basic search on my site using a like clause in MySQL. But i开发者_JAVA百科t doesn't help in many cases.

I have a search I am testing with: "swift bird" The entry in the database is: "Swift"

What do people usually do in order to catch as many of the possibilities, abbreviations, and variations of the words they need to find when implementing their own basic search on their site?

If you want to test, here is the url for this: http://www.comehike.com/outdoors/birds/search_birds.php

Thanks, Alex


Have you investigated MySQL's Full Text Search capabilities?

http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜