Enhance MediaWiki Search

旧街凉风 提交于 2019-12-02 06:48:46

问题


I was just wondering if I can enhance the search facility in MediaWiki, like returning a suggested Result Set closest to the Search Key instead of return 0 results page.

For eg. I have created the ff: articles,

Guidelines to Database Management
Guidelines to SQL Reporting

But when I try to search just by entering Guidelines, instead of showing me or suggesting me something close, it returns 0 results prompting me if I want to create it.

Would it be a little suggestive, can I make it be a little suggestive?


回答1:


Try installing Lucene in place of the default MediaWiki search engine, which merely does MySQL full-text indexing. Lucene not only would solve the above problem, it also would work if you'd mistyped "Guidlines" and ask, "Did you mean 'Guidelines'?"

http://www.mediawiki.org/wiki/Extension:Lucene-search http://www.mediawiki.org/wiki/Extension:MWSearch

Lucene is nontrivial to install, but the results are well worth it.



来源:https://stackoverflow.com/questions/16298651/enhance-mediawiki-search

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!