| <?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. |
| --> |
| <schema name="inplace-updates" version="1.6"> |
| |
| <uniqueKey>id</uniqueKey> |
| <field name="id" type="string" indexed="true" stored="true" docValues="true"/> |
| <field name="_root_" type="string" indexed="true" stored="true" docValues="true"/> |
| <field name="_version_" type="long" indexed="false" stored="false" docValues="true" /> |
| <field name="shardName" type="string" multiValued="false" indexed="false" required="false" stored="true"/> |
| |
| <!-- specific schema fields for dv in-place updates --> |
| <field name="inplace_updatable_float" type="float" indexed="false" stored="false" docValues="true" /> |
| <field name="inplace_updatable_int" type="int" indexed="false" stored="false" docValues="true" /> |
| |
| <field name="inplace_updatable_float_with_default" |
| type="float" indexed="false" stored="false" docValues="true" default="42.0"/> |
| <field name="inplace_updatable_int_with_default" |
| type="int" indexed="false" stored="false" docValues="true" default="666"/> |
| |
| <!-- dynamic fields which *ONLY* use docValues so they can be updated in place --> |
| <dynamicField name="*_i_dvo" multiValued="false" type="int" docValues="true" indexed="false" stored="false"/> |
| <dynamicField name="*_f_dvo" multiValued="false" type="float" docValues="true" indexed="false" stored="false"/> |
| <dynamicField name="*_l_dvo" multiValued="false" type="long" docValues="true" indexed="false" stored="false"/> |
| |
| <!-- dynamic fields that must *NOT* support in place updates --> |
| <dynamicField name="*_s" type="string" indexed="true" stored="true"/> |
| <dynamicField name="*_i" type="int" indexed="true" stored="true" docValues="true"/> |
| <dynamicField name="*_l" type="long" indexed="true" stored="true" docValues="true"/> |
| |
| <!-- Copy fields --> |
| |
| <!-- The id field has a non in-place updatable copy target, but in-place updates should still work. --> |
| <copyField source="id" dest="id_field_copy_that_does_not_support_in_place_update_s"/> |
| |
| <!-- copyfield1: src and dest are both updatable --> |
| <field name="copyfield1_src__both_updatable" type="int" indexed="false" stored="false" docValues="true" /> |
| <copyField source="copyfield1_src__both_updatable" dest="copyfield1_dest__both_updatable_i_dvo"/> |
| |
| <!-- copyfield2: src is updatable but dest is not --> |
| <field name="copyfield2_src__only_src_updatable" type="int" indexed="false" stored="false" docValues="true" /> |
| <copyField source="copyfield2_src__only_src_updatable" dest="copyfield2_dest__only_src_updatable_i"/> |
| |
| |
| <!-- cruft needed by the solrconfig used in our tests for startup, but not used in the tests --> |
| <field name="signatureField" type="string" indexed="true" stored="false"/> |
| <dynamicField name="*_sS" type="string" indexed="true" stored="true"/> |
| |
| |
| <fieldType name="string" class="solr.StrField" multiValued="false" indexed="false" stored="false" docValues="false" /> |
| <fieldType name="long" class="${solr.tests.LongFieldType}" multiValued="false" indexed="false" stored="false" docValues="false"/> |
| <fieldType name="float" class="${solr.tests.FloatFieldType}" multiValued="false" indexed="false" stored="false" docValues="false"/> |
| <fieldType name="int" class="${solr.tests.IntegerFieldType}" multiValued="false" indexed="false" stored="false" docValues="false"/> |
| |
| </schema> |