blob: deb282f498b0326e70d6668954229d33a0bd173e [file] [log] [blame]
<?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.
-->
<!-- The Solr schema file. This file should be named "schema.xml" and
should be located where the classloader for the Solr webapp can find it.
This schema is used for testing, and as such has everything and the
kitchen sink thrown in. See example/solr/conf/schema.xml for a
more concise example.
-->
<schema name="schema-analytics" version="1.6">
<!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and
behavior of the fieldType.
-->
<!-- numeric field types that store and index the text
value verbatim (and hence don't sort correctly or support range queries.)
These are provided more for backward compatability, allowing one
to create a schema that matches an existing lucene index.
-->
<fieldType name="int" class="${solr.tests.IntegerFieldType}" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="float" class="${solr.tests.FloatFieldType}" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long" class="${solr.tests.LongFieldType}" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double" class="${solr.tests.DoubleFieldType}" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional.
-->
<fieldType name="date" class="${solr.tests.DateFieldType}" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- Numeric Trie Fields -->
<fieldType name="int_trie" class="solr.TrieIntField" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="float_trie" class="solr.TrieFloatField" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long_trie" class="solr.TrieLongField" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double_trie" class="solr.TrieDoubleField" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="date_trie" class="solr.TrieDateField" docValues="true" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- Numeric Trie Fields -->
<fieldType name="int_pnt" class="solr.IntPointField" docValues="true" />
<fieldType name="float_pnt" class="solr.FloatPointField" docValues="true" />
<fieldType name="long_pnt" class="solr.LongPointField" docValues="true" />
<fieldType name="double_pnt" class="solr.DoublePointField" docValues="true" />
<fieldType name="date_pnt" class="solr.DatePointField" docValues="true" />
<field name="long.dotfield" type="long_pnt"/>
<fieldType name="boolean" class="solr.BoolField" docValues="true"/>
<fieldType name="string" class="solr.StrField" docValues="true"/>
<field name="id" type="string" multiValued="false" required="true"/>
<dynamicField name="*_b" type="boolean" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_bm" type="boolean" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_bd" type="boolean" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_bdm" type="boolean" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_i" type="int" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_im" type="int" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_i_t" type="int_trie" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_im_t" type="int_trie" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_i_p" type="int_pnt" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_im_p" type="int_pnt" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_id" type="int" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_idm" type="int" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_l" type="long" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_lm" type="long" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_l_t" type="long_trie" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_lm_t" type="long_trie" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_l_p" type="long_pnt" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_lm_p" type="long_pnt" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_ld" type="long" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_ldm" type="long" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_f" type="float" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_fm" type="float" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_f_t" type="float_trie" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_fm_t" type="float_trie" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_f_p" type="float_pnt" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_fm_p" type="float_pnt" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_fd" type="float" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_fdm" type="float" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_d" type="double" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dm" type="double" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_d_t" type="double_trie" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dm_t" type="double_trie" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_d_p" type="double_pnt" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dm_p" type="double_pnt" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_dd" type="double" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_ddm" type="double" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_dt" type="date" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dtm" type="date" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_dt_t" type="date_trie" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dtm_t" type="date_trie" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_dt_p" type="date_pnt" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dtm_p" type="date_pnt" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_dtd" type="date" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_dtdm" type="date" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_s" type="string" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_sm" type="string" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_sd" type="string" indexed="true" stored="true" multiValued="false"/>
<dynamicField name="*_sdm" type="string" indexed="true" stored="true" multiValued="true"/>
<uniqueKey>id</uniqueKey>
</schema>