Permalink
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (59 sloc) 3.71 KB
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="data" version="1.4">
<types>
<!-- Basic types -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" />
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true" />
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" />
<fieldType name="double" class="solr.TrieDoubleField" 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.SynonymFilterFactory" synonyms="english_names.txt" ignoreCase="true" expand="true" />
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<!-- Geographic types -->
<!--<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate" />-->
<!-- Miscellaneous types -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
</types>
<fields>
<!-- Static fields -->
<field name="id" type="string" indexed="true" stored="true" required="true" />
<field name="dataset_slug" type="string" indexed="true" stored="true" required="true" />
<field name="data_upload_id" type="string" indexed="true" stored="true" required="false" />
<field name="external_id" type="string" indexed="true" stored="true" />
<field name="full_text" type="text_general" indexed="true" stored="false" />
<field name="data" type="string" indexed="false" stored="true" required="true" />
<field name="last_modified" type="date" indexed="true" stored="false" required="false" />
<!-- Dynamic typed fields that correspond to Python types -->
<dynamicField name="column_unicode_*" type="text_general" indexed="true" stored="false" />
<dynamicField name="column_int_*" type="long" indexed="true" stored="false" />
<dynamicField name="column_bool_*" type="boolean" indexed="true" stored="false" />
<dynamicField name="column_float_*" type="float" indexed="true" stored="false" />
<dynamicField name="column_datetime_*" type="date" indexed="true" stored="false" />
<dynamicField name="column_date_*" type="date" indexed="true" stored="false" />
<dynamicField name="column_time_*" type="date" indexed="true" stored="false" />
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>full_text</defaultSearchField>
<solrQueryParser defaultOperator="OR"/>
<similarity class="panda.CustomSimilarity" />
</schema>