50 lines
2.8 KiB
XML
50 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<schema name="dovecot-fts" version="2.0">
|
|
<fieldType name="string" class="solr.StrField" omitNorms="true" sortMissingLast="true"/>
|
|
<fieldType name="long" class="solr.LongPointField" positionIncrementGap="0"/>
|
|
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
|
|
|
|
<fieldType name="text" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100">
|
|
<analyzer type="index">
|
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
|
<filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="20"/>
|
|
<filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
|
|
<filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
|
|
<filter class="solr.FlattenGraphFilterFactory"/>
|
|
<filter class="solr.LowerCaseFilterFactory"/>
|
|
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
|
|
<filter class="solr.PorterStemFilterFactory"/>
|
|
</analyzer>
|
|
<analyzer type="query">
|
|
<tokenizer class="solr.StandardTokenizerFactory"/>
|
|
<filter class="solr.SynonymGraphFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/>
|
|
<filter class="solr.FlattenGraphFilterFactory"/>
|
|
<filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
|
|
<filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
|
|
<filter class="solr.LowerCaseFilterFactory"/>
|
|
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
|
|
<filter class="solr.PorterStemFilterFactory"/>
|
|
</analyzer>
|
|
</fieldType>
|
|
|
|
<field name="id" type="string" indexed="true" required="true" stored="true"/>
|
|
<field name="uid" type="long" indexed="true" required="true" stored="true"/>
|
|
<field name="box" type="string" indexed="true" required="true" stored="true"/>
|
|
<field name="user" type="string" indexed="true" required="true" stored="true"/>
|
|
|
|
<field name="hdr" type="text" indexed="true" stored="false"/>
|
|
<field name="body" type="text" indexed="true" stored="false"/>
|
|
|
|
<field name="from" type="text" indexed="true" stored="false"/>
|
|
<field name="to" type="text" indexed="true" stored="false"/>
|
|
<field name="cc" type="text" indexed="true" stored="false"/>
|
|
<field name="bcc" type="text" indexed="true" stored="false"/>
|
|
<field name="subject" type="text" indexed="true" stored="false"/>
|
|
|
|
<!-- Used by Solr internally: -->
|
|
<field name="_version_" type="long" indexed="true" stored="true"/>
|
|
|
|
<uniqueKey>id</uniqueKey>
|
|
</schema>
|