【发布时间】:2011-11-22 06:14:38
【问题描述】:
我想运行环绕查询。
从以下位置下载 http://www.java2s.com/Code/Jar/JKL/Downloadlucenesurround241jar.htm
将 lucene-surround-2.4.1.jar 移至 /apache-solr-3.1.0/example/lib
编辑 solrconfig.xml
<queryParser name="SurroundQParser" class="org.apache.lucene.queryParser.surround.parser.QueryParser"/>重启 Solr
遇到这个错误:
org.apache.solr.common.SolrException: 实例化 QParserPlugin 时出错,org.apache.lucene.queryParser.surround.parser.QueryParser 不是 org.apache.solr.search.QParserPlugin 在 org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425)
【问题讨论】:
标签: solr lucene search-engine