blob: 9d0cfa23f90fea263c5aa7a1f36e6a592d5588cf [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.
-->
<!--
Striped down schema used by SampleTest to demonstrate picking any
schema filename you want.
-->
<!--
See comments from Yonik on SOLR-9083. It costs us nothing to leave these in given the parsing pattern for the schema
that just finds leaf <fieldType> and <field> nodes and there's no reason to break schemas for people who leave
<fields> and <types> tags in their schema for no good purpose.
-->
<schema name="test" version="1.0">
<types> <!-- Intentionally left in. see comment above -->
<fieldType name="string" class="solr.StrField" />
<fieldType name="text" class="solr.TextField">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/>
</analyzer>
</fieldType>
</types>
<fields> <!-- Intentionally left in. see comment above -->
<field name="id" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="subject" type="text" indexed="true" stored="true"/>
</fields>
<uniqueKey>id</uniqueKey>
</schema>