maxMergeSizeMB属性应该是:lucene内部的合并策略(Lucene中的合并因子mergeFactor)
系统参数:
maxCacheMB=48.0 maxMergeSizeMB=4.0
我想像下面这样更改maxCacheMB和maxMergeSizeMB:
maxCacheMB=64.0 maxMergeSizeMB=12.0
我在网上和官网上都找不到结果
我的solrconfig.xml
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
回答 1
Stack Overflow用户
发布于 2019-08-06 03:47:29
According to the source NRTCachingDirectoryFactory支持工厂定义中给出的两个参数:
maxMergeSizeMB = params.getDouble("maxMergeSizeMB", DEFAULT_MAX_MERGE_SIZE_MB);
maxCachedMB = params.getDouble("maxCachedMB", DEFAULT_MAX_CACHED_MB);
元素下给出了directoryFactory的参数:
<directoryFactory ...>
<int name="maxMergeSizeMB">12</int>
<int name="maxCachedMB">64</int>
</directoryFactory>
https://stackoverflow.com/questions/57357202
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"> <int name="maxMergeSizeMB">12</int> <int name="maxCachedMB">64</int> </directoryFactory>
注:maxCacheMB对应的是maxCachedMB属性,两个字符串不一样,看仔细,别弄错了。
查看