source: sandbox/expresso-solr/solr/example/multicore/core0/conf/schema.xml @ 7588

Revision 7588, 1.9 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
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
Note: See TracBrowser for help on using the repository browser.