开发者

how to make a search functionality like the yahoo news site search

how to create a search functionality like the the one in this page :

http://news.maktoob.com/search?q=%D8%AE%D8%A8%D8%B1&type=site

it开发者_如何学Go searchs the database for the exact occurrence for the search text

and display the part of the content that contains this search text


I suggest you use a search framework like lucene to perform the search and the term highlighting in the found documents for you.

This article should get you started: http://ganeshhs.com/zend-framework/zend-search-lucene-part4-search-results-highlighting

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜