| <?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:true}</str> |
| </directoryFactory> |
| <schemaFactory class="ClassicIndexSchemaFactory"/> |
| <requestDispatcher> |
| <requestParsers enableStreamBody="true" /> |
| </requestDispatcher> |
| |
| <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" /> |
| |
| <updateHandler class="solr.DirectUpdateHandler2"> |
| <!-- autocommit pending docs if certain criteria are met --> |
| <autoCommit> |
| <maxSize>${solr.autoCommit.maxSize:}</maxSize> |
| </autoCommit> |
| <updateLog class="${solr.tests.ulog:solr.UpdateLog}"> |
| <str name="dir">${solr.ulog.dir:}</str> |
| <str name="maxNumLogsToKeep">${solr.ulog.maxNumLogsToKeep:10}</str> |
| <str name="numRecordsToKeep">${solr.ulog.numRecordsToKeep:100}</str> |
| <int name="tlogDfsReplication">${solr.ulog.tlogDfsReplication:2}</int> |
| </updateLog> |
| |
| |
| <autoCommit> |
| <maxTime>${solr.autoCommit.maxTime:-1}</maxTime> |
| <openSearcher>false</openSearcher> |
| </autoCommit> |
| |
| <autoSoftCommit> |
| <maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime> |
| </autoSoftCommit> |
| </updateHandler> |
| |
| <updateRequestProcessorChain name="distrib-dup-test-chain-explicit"> |
| <!-- explicit test using processors before and after distrib --> |
| <processor class="solr.RegexReplaceProcessorFactory"> |
| <str name="fieldName">regex_dup_A_s</str> |
| <str name="pattern">x</str> |
| <str name="replacement">x_x</str> |
| </processor> |
| <processor class="solr.DistributedUpdateProcessorFactory" /> |
| <processor class="solr.RegexReplaceProcessorFactory"> |
| <str name="fieldName">regex_dup_B_s</str> |
| <str name="pattern">x</str> |
| <str name="replacement">x_x</str> |
| </processor> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| <updateRequestProcessorChain name="distrib-dup-test-chain-implicit"> |
| <!-- implicit test w/o distrib declared--> |
| <processor class="solr.RegexReplaceProcessorFactory"> |
| <str name="fieldName">regex_dup_A_s</str> |
| <str name="pattern">x</str> |
| <str name="replacement">x_x</str> |
| </processor> |
| <processor class="solr.RegexReplaceProcessorFactory"> |
| <str name="fieldName">regex_dup_B_s</str> |
| <str name="pattern">x</str> |
| <str name="replacement">x_x</str> |
| </processor> |
| <processor class="solr.RunUpdateProcessorFactory" /> |
| </updateRequestProcessorChain> |
| |
| <requestHandler name="/dump" class="DumpRequestHandler" initParams="a"> |
| <lst name="defaults"> |
| <str name="a">A</str> |
| <str name="b">B</str> |
| </lst> |
| </requestHandler> |
| |
| |
| <query> |
| <filterCache size="512" |
| initialSize="512" |
| autowarmCount="0" /> |
| |
| <queryResultCache size="512" |
| initialSize="512" |
| autowarmCount="0" /> |
| |
| <documentCache size="512" |
| initialSize="512" |
| autowarmCount="0" /> |
| |
| <cache name="perSegFilter" |
| size="10" |
| initialSize="0" |
| autowarmCount="10" |
| regenerator="solr.NoOpRegenerator" /> |
| |
| </query> |
| |
| <initParams path="/select"> |
| <lst name="defaults"> |
| <str name="df">text</str> |
| </lst> |
| </initParams> |
| |
| |
| <valueSourceParser name="nvl" class="org.apache.solr.search.function.NvlValueSourceParser"> |
| <float name="nvlFloatValue">0.0</float> |
| </valueSourceParser> |
| <valueSourceParser name="agg_debug" class="org.apache.solr.search.facet.DebugAgg$Parser"> |
| </valueSourceParser> |
| |
| |
| </config> |