blob: 2c2e634380065bd6d78bece600954ae706bb34b0 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?xml version="1.0" encoding="UTF-8"?>
2
3<schema name="dovecot-fts" version="2.0">
4 <fieldType name="string" class="solr.StrField" omitNorms="true" sortMissingLast="true"/>
5 <fieldType name="long" class="solr.LongPointField" positionIncrementGap="0"/>
6 <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
7
8 <fieldType name="text" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100">
9 <analyzer type="index">
10 <tokenizer class="solr.StandardTokenizerFactory"/>
11 <filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="20"/>
12 <filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
13 <filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
14 <filter class="solr.FlattenGraphFilterFactory"/>
15 <filter class="solr.LowerCaseFilterFactory"/>
16 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
17 <filter class="solr.PorterStemFilterFactory"/>
18 </analyzer>
19 <analyzer type="query">
20 <tokenizer class="solr.StandardTokenizerFactory"/>
21 <filter class="solr.SynonymGraphFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/>
22 <filter class="solr.FlattenGraphFilterFactory"/>
23 <filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
24 <filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
25 <filter class="solr.LowerCaseFilterFactory"/>
26 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
27 <filter class="solr.PorterStemFilterFactory"/>
28 </analyzer>
29 </fieldType>
30
31 <field name="id" type="string" indexed="true" required="true" stored="true"/>
32 <field name="uid" type="long" indexed="true" required="true" stored="true"/>
33 <field name="box" type="string" indexed="true" required="true" stored="true"/>
34 <field name="user" type="string" indexed="true" required="true" stored="true"/>
35
36 <field name="hdr" type="text" indexed="true" stored="false"/>
37 <field name="body" type="text" indexed="true" stored="false"/>
38
39 <field name="from" type="text" indexed="true" stored="false"/>
40 <field name="to" type="text" indexed="true" stored="false"/>
41 <field name="cc" type="text" indexed="true" stored="false"/>
42 <field name="bcc" type="text" indexed="true" stored="false"/>
43 <field name="subject" type="text" indexed="true" stored="false"/>
44
45 <!-- Used by Solr internally: -->
46 <field name="_version_" type="long" indexed="true" stored="true"/>
47
48 <uniqueKey>id</uniqueKey>
49</schema>