增强MediaWiki搜索 [英] Enhance MediaWiki Search

查看:86
本文介绍了增强MediaWiki搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道我是否可以增强MediaWiki中的搜索功能,例如返回最接近搜索关键字的建议结果集,而不是返回0个结果页面.

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.

例如我创建了ff:文章

For eg. I have created the ff: articles,

Guidelines to Database Management
Guidelines to SQL Reporting

但是,当我尝试仅通过输入 指南 进行搜索时,没有显示我或向我建议接近的内容,而是返回0条结果,提示我是否要创建它

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?

推荐答案

尝试安装Lucene代替默认的MediaWiki搜索引擎,该引擎仅执行MySQL全文索引. Lucene不仅可以解决上述问题,而且如果您输错"Guidlines"并询问您是说'Guidelines'吗?"

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的安装非常简单,但是结果值得.

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

这篇关于增强MediaWiki搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆