Apache Solr 3.6 发布了,该版本包含大量的 bug 修复、优化和改进,下载地址:
http://lucene.apache.org/solr/mirrors-solr-latest-redir.html
主要改进内容:
* 新的 SolrJ 客户端连接器,基于 Apache 的 HTTPComonents 的 HTTPClient API (SOLR-2020)
* 许多分析器工厂类支持 "multi term query aware" 允许使用前缀和通配符匹配查询(SOLR-2438)
* 新的日语分析器 (SOLR-3056)
* 分布式搜索支持 Range Faceting (Dates & Numbers) (SOLR-1709)
* HTMLStripCharFilter 重构,大大提升了性能 (LUCENE-3690)
* StreamingUpdateSolrServer 支持 javabin 格式 (SOLR-1565)
* 新的 LFU 缓存选项 (SOLR-2906)
* 提升了所有基于 FST 建议的内容性能 (SOLR-2888)
* 新的 WFSTLookupFactory 建议支持更细粒度排名 (LUCENE-3714)
* 新的选项用于配置分布式搜索的并发 (SOLR-3221)
* 修复许多bug
记录一些变动
Configured my replication handler like this:
<requestHandler name="/replication" class="solr.ReplicationHandler" >
<lst name="master">
<str name="replicateAfter">startup</str>
<str name="replicateAfter">commit</str>
<str name="replicateAfter">optimize</str>
<str name="confFiles">elevate.xml,schema.xml,spellings.txt,stopwords.txt,stopwords_de.txt,stopwords_en.txt,synonyms_de.txt,synonyms.txt</str>
<str name="backupAfter">optimize</str>
<str name="numberToKeep">1</str>
</lst>
</requestHandler>
So after optimize a snapshot should be taken, this works. But numberToKeep is ignored, snapshots are increasing with each call to optimize and are kept forever. Seems this settings have no effect.
已解决。。
Deprecate defaultSearchField and defaultOperator defined in schema.xml
<similarity> Seems like something better placed in solrconfig.xml than in the schema.
默认的搜索字段跟语法解析操作弃掉,且将定义similarity从schema.xml移到solrconfig.xml