Prerequisite
先决条件 h4>
A Solr server 3.6.0 or > installed and configured with the provided schema.xml file.
已安装并配置了提供的schema.xml文件的Solr服务器3.6.0或>。
This file is configured for English content.
此文件配置为英语内容。
Update this file according to your content language.
根据您的内容语言更新此文件。 p>
In order to have spell checking work, in your solrconfig.xml file, check :
为了进行拼写检查,请在您的solrconfig.xml文件中检查: p>
the spellchecker component have to be correctly configured :
必须正确配置拼写检查器组件: p>
default
默认 str>
spell
法术 str>
spellchecker
拼写检查器 str>
true
true str>
lst> p>
li>
the request handler includes the spellchecker component
请求处理程序包括拼写检查器组件 p>
spellcheck
拼写检查 str>
arr> p>
li>
ol>
If you are using “Solr for WordPress” WordPress plugin, deactivate and uninstall it.
如果您使用的是“ Solr for WordPress” WordPress插件,请停用并卸载它。 p>
Installation
安装 h4>
- Upload the
advanced-search-by-my-solr-server
folder to the /wp-content/plugins/
directory - 将
advanced-by-by-my-solr-server code>文件夹上载到 / wp-content / plugins / code>目录 li>- Activate the plugin through the ‘Plugins’ menu in WordPress
- 通过WordPress中的“插件”菜单激活插件 li>
- Go in Advanced Search by My Solr Server settings page (“Advanced Search by My Solr Server”), configure the plugin and Load your blog content in Solr (“Load Content” button)
- 进入“按我的Solr Server进行高级搜索”设置页面(“按我的Solr Server进行高级搜索”),配置插件,然后将博客内容加载到Solr中(“加载内容”按钮) li>
ol>
Customize the plugin display
自定义插件显示 h4>
The plugin uses the template files located in the template
directory.
该插件使用位于 template code>目录中的模板文件。You can implement your own template files by copying theses files with a new name terminating by “_custom” (for instance, the file mss_search.php is copied as mss_search_custom.php).
您可以通过复制这些文件并使用以“ _custom”结尾的新名称来实现自己的模板文件(例如,文件mss_search.php被复制为mss_search_custom.php)。
These new files can be located in the plugin’s template directory or in your theme’s main directory.
这些新文件可以位于插件的模板目录或主题的主目录中。 p>