| <?xml version="1.0" ?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <config> |
| <jmx/> |
| |
| <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion> |
| |
| <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.RAMDirectoryFactory}"> |
| <!-- used to keep RAM reqs down for HdfsDirectoryFactory --> |
| <bool name="solr.hdfs.blockcache.enabled">${solr.hdfs.blockcache.enabled:true}</bool> |
| <int name="solr.hdfs.blockcache.blocksperbank">${solr.hdfs.blockcache.blocksperbank:1024}</int> |
| <str name="solr.hdfs.home">${solr.hdfs.home:}</str> |
| <str name="solr.hdfs.confdir">${solr.hdfs.confdir:}</str> |
| <str name="solr.hdfs.blockcache.global">${solr.hdfs.blockcache.global:false}</str> |
| </directoryFactory> |
| |
| <schemaFactory class="ClassicIndexSchemaFactory"/> |
| |
| <dataDir>${solr.data.dir:}</dataDir> |
| |
| <xi:include href="solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| |
| <requestHandler name="/select" class="solr.SearchHandler"> |
| </requestHandler> |
| |
| <requestHandler name="/update" class="solr.UpdateRequestHandler"> |
| <lst name="defaults"> |
| <str name="update.chain">cdcr-processor-chain</str> |
| </lst> |
| </requestHandler> |
| |
| <updateRequestProcessorChain name="cdcr-processor-chain"> |
| <processor class="solr.CdcrUpdateProcessorFactory"/> |
| <processor class="solr.RunUpdateProcessorFactory"/> |
| </updateRequestProcessorChain> |
| |
| <requestHandler name="/cdcr" class="solr.CdcrRequestHandler"> |
| <lst name="replica"> |
| <str name="zkHost">${zkHost}</str> |
| <str name="source">source_collection</str> |
| <str name="target">target_collection</str> |
| </lst> |
| <lst name="replicator"> |
| <str name="threadPoolSize">8</str> |
| <str name="schedule">1000</str> |
| <str name="batchSize">64</str> |
| </lst> |
| <lst name="updateLogSynchronizer"> |
| <str name="schedule">1000</str> |
| </lst> |
| </requestHandler> |
| |
| <updateHandler class="solr.DirectUpdateHandler2"> |
| <updateLog class="solr.CdcrUpdateLog"> |
| <str name="dir">${solr.ulog.dir:}</str> |
| </updateLog> |
| </updateHandler> |
| |
| </config> |
| |