mirror of https://github.com/apache/lucene.git
SOLR-8621: Fix SolrIndexConfig.toMap() to use mergePolicyFactoryInfo if present
This commit is contained in:
parent
03d7f80b27
commit
fe2cf25079
|
@ -188,7 +188,11 @@ public class SolrIndexConfig implements MapSerializable {
|
|||
"lockType", lockType,
|
||||
"infoStreamEnabled", infoStream != InfoStream.NO_OUTPUT);
|
||||
if(mergeSchedulerInfo != null) m.put("mergeScheduler",mergeSchedulerInfo.toMap());
|
||||
if(mergePolicyInfo != null) m.put("mergePolicy",mergePolicyInfo.toMap());
|
||||
if (mergePolicyInfo != null) {
|
||||
m.put("mergePolicy", mergePolicyInfo.toMap());
|
||||
} else if (mergePolicyFactoryInfo != null) {
|
||||
m.put("mergePolicy", mergePolicyFactoryInfo.toMap());
|
||||
}
|
||||
if(mergedSegmentWarmerInfo != null) m.put("mergedSegmentWarmer",mergedSegmentWarmerInfo.toMap());
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue