| <?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> |
| |
| <dataDir>${solr.data.dir:}</dataDir> |
| |
| <xi:include href="solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| |
| <!-- an update processor the explicitly excludes distrib to test |
| clean errors when people attempt atomic updates w/o it |
| --> |
| <updateRequestProcessorChain name="nodistrib" > |
| <processor class="solr.NoOpDistributingUpdateProcessorFactory" /> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| <requestHandler name="/select" class="solr.SearchHandler"/> |
| |
| <requestHandler name="/get" class="solr.RealTimeGetHandler"> |
| <lst name="defaults"> |
| <str name="omitHeader">true</str> |
| </lst> |
| </requestHandler> |
| |
| <requestHandler name="/replication" class="solr.ReplicationHandler" startup="lazy" /> |
| |
| <requestHandler name="/update" class="solr.UpdateRequestHandler" /> |
| |
| <updateHandler class="solr.DirectUpdateHandler2"> |
| <updateLog> |
| <str name="dir">${solr.ulog.dir:}</str> |
| </updateLog> |
| </updateHandler> |
| |
| <updateRequestProcessorChain name="tolerant-chain-max-errors-10"> |
| <processor class="solr.TolerantUpdateProcessorFactory"> |
| <!-- explicitly testing that parsing still works if a valid int is specified as a string --> |
| <str name="maxErrors">10</str> |
| </processor> |
| <processor class="solr.DistributedUpdateProcessorFactory" /> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| <updateRequestProcessorChain name="tolerant-chain-max-errors-not-set"> |
| <processor class="solr.TolerantUpdateProcessorFactory"/> |
| <processor class="solr.DistributedUpdateProcessorFactory" /> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| <updateRequestProcessorChain name="not-tolerant"> |
| <processor class="solr.DistributedUpdateProcessorFactory" /> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| </config> |