Configuration cleanup for Solr 5 - mostly cleaning up solrconfig.xml
[lui-solr.git] / conf / schema.xml
index 399c040..9253610 100644 (file)
@@ -8,8 +8,8 @@
  Schema Design section of the Solr Reference Guide.
 -->
 
-<schema name="Local Unified Index" version="1.2">
-  <types>
+<schema name="Local Unified Index" version="1.6">
+
     <!-- stock Solr field types from the dist schema.xml -->
     <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
     <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
     </fieldType>
 
     <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> 
- </types>
 
- <fields>
+   <!-- defined fields in the lui-solr schema -->
+
    <field name="id" type="string" indexed="true" stored="true" required="true" /> 
    <field name="_version_" type="long" indexed="true" stored="true"/>
 
    <field name="harvest-timestamp" type="date"   indexed="true" stored="true"/>
    <field name="harvest-date"      type="string" indexed="true" stored="true"/>
 
-   <!-- catchall fields, can be implemented via copyField further on in this schema -->
+   <!-- default search field, created by the clone-fields update
+        processor chain in solrconfig.xml -->
    <field name="text" type="text" indexed="true" stored="false" multiValued="true"/>
-   <field name="text_rev" type="text_rev" indexed="true" stored="false" multiValued="true"/>
-   <field name="payloads" type="payloads" indexed="true" stored="true"/>
 
    <!-- Dynamic field definitions -->
    <dynamicField name="*_i"  type="int"    indexed="true"  stored="true"/>
    <dynamicField name="*_path" type="text" indexed="true" stored="true" multiValued="true"/>
 
    <!-- catchall dynamic field -->
-   <dynamicField name="*" type="text" multiValued="true" />
- </fields>
+   <dynamicField name="*" type="text" multiValued="true"/>
 
  <uniqueKey>id</uniqueKey>
 
- <defaultSearchField>text</defaultSearchField>
-
- <solrQueryParser defaultOperator="AND"/>
-
  <!-- copyField commands -->
  <copyField source="author"  dest="author_exact"/>
  <copyField source="subject" dest="subject_exact"/>
  <copyField source="medium"  dest="medium_exact"/>
  <copyField source="journal-title"   dest="journal-title_exact"/>
- <!-- catchall to index all fields -->
- <copyField source="*" dest="text"/> 
 
 </schema>