Permalink
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (40 sloc) 2.02 KB
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="datasets" version="1.4">
<types>
<!-- Basic types -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" />
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
<fieldType name="date" class="solr.TrieDateField" omitNorms="true" precisionStep="0" positionIncrementGap="0" />
<!-- Full-text types -->
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1"
generateNumberParts="1"
catenateWords="1"
catenateNumbers="1"
catenateAll="1"
preserveOriginal="1"
/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<!-- Miscellaneous types -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
</types>
<fields>
<!-- Static fields -->
<field name="slug" type="string" indexed="true" stored="true" required="true" />
<field name="creation_date" type="date" indexed="true" stored="false" required="true" />
<field name="categories" type="int" indexed="true" stored="true" required="false" multiValued="true" />
<field name="full_text" type="text_general" indexed="true" stored="false" />
</fields>
<uniqueKey>slug</uniqueKey>
<defaultSearchField>full_text</defaultSearchField>
<solrQueryParser defaultOperator="OR"/>
</schema>