Configuration cleanup for Solr 5 - mostly cleaning up solrconfig.xml
[lui-solr.git] / zookeeper / multicore / core0 / conf / schema.xml
1 <?xml version="1.0" ?>
2 <!--
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements.  See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License.  You may obtain a copy of the License at
9
10      http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18
19 <schema name="example core zero" version="1.1">
20   <types>
21    <fieldtype name="string"  class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
22    <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
23   </types>
24
25  <fields>   
26   <!-- general -->
27   <field name="id"        type="string"   indexed="true"  stored="true"  multiValued="false" required="true"/>
28   <field name="type"      type="string"   indexed="true"  stored="true"  multiValued="false" /> 
29   <field name="name"      type="string"   indexed="true"  stored="true"  multiValued="false" /> 
30   <field name="core0"     type="string"   indexed="true"  stored="true"  multiValued="false" /> 
31   <field name="_version_" type="long"     indexed="true"  stored="true"/>
32  </fields>
33
34  <!-- field to use to determine and enforce document uniqueness. -->
35  <uniqueKey>id</uniqueKey>
36
37  <!-- field for the QueryParser to use when an explicit fieldname is absent -->
38  <defaultSearchField>name</defaultSearchField>
39
40  <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
41  <solrQueryParser defaultOperator="OR"/>
42 </schema>
43