| <?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. |
| --> |
| |
| <!-- |
| |
| For testing stopword configuration and keep word configuration |
| |
| $Id: schema.xml 382610 2006-03-03 01:43:03Z yonik $ |
| $Source: /cvs/main/searching/solr-configs/test/WEB-INF/classes/schema.xml,v $ |
| $Name: $ |
| --> |
| |
| <schema name="test" version="1.0"> |
| <types> |
| |
| |
| <fieldtype name="integer" class="solr.IntField" /> |
| |
| <fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> |
| <fieldtype name="stop-one" class="solr.TextField"> |
| <analyzer> |
| <tokenizer class="solr.MockTokenizerFactory"/> |
| <filter class="solr.LowerCaseFilterFactory"/> |
| <filter class="solr.StopFilterFactory" ignoreCase="true" |
| words="stop-1.txt"/> |
| |
| </analyzer> |
| </fieldtype> |
| <fieldtype name="stop-two" class="solr.TextField"> |
| <analyzer> |
| <tokenizer class="solr.MockTokenizerFactory"/> |
| <filter class="solr.LowerCaseFilterFactory"/> |
| <filter class="solr.StopFilterFactory" ignoreCase="true" |
| words="stop-1.txt,stop-2.txt"/> |
| |
| </analyzer> |
| </fieldtype> |
| </types> |
| |
| |
| <fields> |
| <field name="id" type="integer" indexed="true" stored="true" multiValued="false" required="false"/> |
| <field name="one" type="stop-one" indexed="true" stored="false"/> |
| <field name="two" type="stop-two" indexed="true" stored="false"/> |
| |
| </fields> |
| |
| <defaultSearchField>one</defaultSearchField> |
| <uniqueKey>id</uniqueKey> |
| |
| |
| </schema> |