| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| 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> |
| <luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion> |
| |
| <xi:include href="solrconfig.snippet.randomindexconfig.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| |
| <!-- This is intentionally commented out, see SOLR-8131 --> |
| <!--<schemaFactory class="ManagedIndexSchemaFactory">--> |
| <!--<bool name="mutable">${managed.schema.mutable}</bool>--> |
| <!--<str name="managedSchemaResourceName">managed-schema</str>--> |
| <!--</schemaFactory>--> |
| |
| <codecFactory class="solr.SchemaCodecFactory"/> |
| |
| <updateHandler> |
| <updateLog enable="true"> |
| <str name="dir">${solr.ulog.dir:}</str> |
| </updateLog> |
| </updateHandler> |
| |
| <requestDispatcher> |
| <requestParsers enableStreamBody="true" /> |
| </requestDispatcher> |
| |
| <requestHandler name="/select" class="solr.SearchHandler"> |
| <bool name="httpCaching">true</bool> |
| </requestHandler> |
| |
| <initParams path="/update/**"> |
| <lst name="defaults"> |
| <str name="update.chain">add-unknown-fields-to-the-schema</str> |
| </lst> |
| </initParams> |
| |
| <updateRequestProcessorChain name="add-unknown-fields-to-the-schema"> |
| <processor class="solr.UUIDUpdateProcessorFactory" /> |
| <processor class="solr.RemoveBlankFieldUpdateProcessorFactory"/> |
| <processor class="solr.FieldNameMutatingUpdateProcessorFactory"> |
| <str name="pattern">[^\w-\.]</str> |
| <str name="replacement">_</str> |
| </processor> |
| <processor class="solr.ParseBooleanFieldUpdateProcessorFactory"/> |
| <processor class="solr.ParseLongFieldUpdateProcessorFactory"/> |
| <processor class="solr.ParseDoubleFieldUpdateProcessorFactory"/> |
| <processor class="solr.ParseDateFieldUpdateProcessorFactory"> |
| <arr name="format"> |
| <str>yyyy-MM-dd['T'[HH:mm[:ss[.SSS]][z</str> |
| <str>yyyy-MM-dd['T'[HH:mm[:ss[,SSS]][z</str> |
| <str>yyyy-MM-dd HH:mm[:ss[.SSS]][z</str> |
| <str>yyyy-MM-dd HH:mm[:ss[,SSS]][z</str> |
| <str>[EEE, ]dd MMM yyyy HH:mm[:ss] z</str> |
| <str>EEEE, dd-MMM-yy HH:mm:ss z</str> |
| <str>EEE MMM ppd HH:mm:ss [z ]yyyy</str> |
| </arr> |
| </processor> |
| |
| <processor class="solr.AddSchemaFieldsUpdateProcessorFactory"> |
| <str name="defaultFieldType">text</str> |
| <lst name="typeMapping"> |
| <str name="valueClass">java.lang.Boolean</str> |
| <str name="fieldType">boolean</str> |
| </lst> |
| <lst name="typeMapping"> |
| <str name="valueClass">java.util.Date</str> |
| <str name="fieldType">pdates</str> |
| </lst> |
| <lst name="typeMapping"> |
| <str name="valueClass">java.lang.Long</str> |
| <str name="valueClass">java.lang.Integer</str> |
| <str name="fieldType">plongs</str> |
| </lst> |
| <lst name="typeMapping"> |
| <str name="valueClass">java.lang.Number</str> |
| <str name="fieldType">pdoubles</str> |
| </lst> |
| </processor> |
| <processor class="solr.LogUpdateProcessorFactory"/> |
| <processor class="solr.DistributedUpdateProcessorFactory" /> |
| <processor class="solr.RunUpdateProcessorFactory"/> |
| </updateRequestProcessorChain> |
| </config> |