summaryrefslogtreecommitdiffstats
path: root/doc/solr-schema.xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:36:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:36:47 +0000
commit0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch)
tree3f3789daa2f6db22da6e55e92bee0062a7d613fe /doc/solr-schema.xml
parentInitial commit. (diff)
downloaddovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz
dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/solr-schema.xml')
-rw-r--r--doc/solr-schema.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/solr-schema.xml b/doc/solr-schema.xml
new file mode 100644
index 0000000..cea6a3b
--- /dev/null
+++ b/doc/solr-schema.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+For fts-solr:
+
+This is the Solr schema file, place it into solr/conf/schema.xml. You may
+want to modify the tokenizers and filters.
+-->
+<schema name="dovecot" version="1.5">
+ <types>
+ <!-- IMAP has 32bit unsigned ints but java ints are signed, so use longs -->
+ <fieldType name="string" class="solr.StrField" />
+ <fieldType name="long" class="solr.TrieLongField" />
+ <fieldType name="boolean" class="solr.BoolField" />
+
+ <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
+ <analyzer type="index">
+ <tokenizer class="solr.StandardTokenizerFactory"/>
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
+ <filter class="solr.LowerCaseFilterFactory"/>
+ <filter class="solr.EnglishPossessiveFilterFactory"/>
+ <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
+ <filter class="solr.EnglishMinimalStemFilterFactory"/>
+ </analyzer>
+ <analyzer type="query">
+ <tokenizer class="solr.StandardTokenizerFactory"/>
+ <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
+ <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
+ <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
+ <filter class="solr.LowerCaseFilterFactory"/>
+ <filter class="solr.EnglishPossessiveFilterFactory"/>
+ <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
+ <filter class="solr.EnglishMinimalStemFilterFactory"/>
+ </analyzer>
+ </fieldType>
+ </types>
+
+
+ <fields>
+ <field name="id" type="string" indexed="true" stored="true" required="true" />
+ <field name="uid" type="long" indexed="true" stored="true" required="true" />
+ <field name="box" type="string" indexed="true" stored="true" required="true" />
+ <field name="user" type="string" indexed="true" stored="true" required="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"/>
+ </fields>
+
+ <uniqueKey>id</uniqueKey>
+</schema>