Advertisement
Guest User

Untitled

a guest
Sep 13th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.42 KB | None | 0 0
  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="bit_smartsite_bip pages" 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.    <fieldType name="integer"        class="solr.TrieIntField"   precisionStep="0"   positionIncrementGap="0"/>
  24.  
  25.  <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
  26.       <analyzer type="index">
  27.           <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  28.           <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
  29.           generateNumberParts="1" catenateWords="1" catenateNumbers="1"
  30.           catenateAll="0" splitOnCaseChange="1"/>
  31.           <filter class="solr.LowerCaseFilterFactory"/>
  32.           <filter class="solr.PorterStemFilterFactory"/>-->
  33.           <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  34.       </analyzer>
  35.       <analyzer type="query">
  36.         <tokenizer class="solr.StandardTokenizerFactory"/>
  37.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  38.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  39.         <filter class="solr.LowerCaseFilterFactory"/>
  40.       </analyzer>
  41.     </fieldType>
  42.  
  43.  
  44.   </types>
  45.  
  46.  <fields>  
  47.   <!-- general -->
  48.   <field name="page_id"     type="integer"      indexed="true"  stored="true"   multiValued="false" required="true"/>
  49.   <field name="_version_"   type="long"     indexed="true"  stored="true"   default="0"/>
  50.  
  51.   <field name="title"       type="string"   indexed="true"  stored="true"   multiValued="false" required="true"/>
  52.   <field name="header"      type="string"   indexed="true"  stored="true"   multiValued="false" required="true"/>
  53.  
  54.   <field name="content"     type="string"   indexed="true"  stored="true"   multiValued="true"  required="true"/>
  55.  
  56.   <field name="file_path"       type="string"   indexed="true"  stored="true"   multiValued="true"  required="true"/>
  57.   <field name="file_name"       type="string"   indexed="true"  stored="true"   multiValued="true"  required="true"/>
  58.   <field name="file_desc"       type="string"   indexed="true"  stored="true"   multiValued="true"  required="true"/>
  59.  
  60.   <field name="text" type="text_general" indexed="true" stored="true" multiValued="true"/>
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  </fields>
  67.  
  68.  <!-- field to use to determine and enforce document uniqueness. -->
  69.  <uniqueKey>page_id</uniqueKey>
  70.  
  71.  <!-- field for the QueryParser to use when an explicit fieldname is absent -->
  72.  <defaultSearchField>title</defaultSearchField>
  73.  
  74.  <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
  75.  <solrQueryParser defaultOperator="OR"/>
  76. </schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement