solr4.4 优化笔记

其中一步:
indexed fields

The number of indexed fields greatly increases the following:

1.Memory usage during indexing
2.Segment merge time
3.Optimization times
4.Index size
These effects can be reduced by the use of omitNorms="true"

omitNorms:this disables length normalization and index-time boosting for the field, and saves some memory,defaults to true for primitive field types (int, float, boolean, string...)


其中一步:
Parameters
Lets define a couple of parameters involved in the process of merging the segments that compose an index:

mergeFactor: this parameter determines many things, like how many segments are going to be merged into a new one, the maximum number of segments that can be in a level and the span of each level. Can be set in solrconfig.xml.
minMergeSize: all segments whose size is less than this parameter’s value will belong to the same level. This value is fixed.
maxMergeSize: all segments whose size is greater than this parameter’s value won’t be ever merged. This value is fixed.
maxMergeDocs: all segments containing more documents than this parameter’s value won’t be merged. Can be set in solrconfig.xml.

noting:
minMergeSize has a fixed value of 1.6 MiB. This means that any segment whose size is less than 1.6 MiB will be included in the last level.
maxMergeSize has a fixed value of 2 GiB. This means that any segment whose size is greater than 2 GiB will never be merged.


数据库表 用solr建索引
[url]Index a DB table directly into Solr[/url]
[url]http://wiki.apache.org/solr/DataImportHandler[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值