annotate doc/solr-schema.xml @ 9301:85e39b7710ee HEAD

autocreate: Fixed autosubscribing to mailboxes in subscriptions=no namespaces. Also log autosubscribe failures if mail_debug=yes.
author Timo Sirainen <tss@iki.fi>
date Sun, 09 Aug 2009 14:55:11 -0400
parents d21bd1a1710a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8003
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" ?>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3 <!--
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 For fts-solr:
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
5
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
6 This is the Solr schema file, place it into solr/conf/schema.xml. You may
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 want to modify the tokenizers and filters.
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 -->
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 <schema name="dovecot" version="1.1">
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 <types>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 <!-- IMAP has 32bit unsigned ints but java ints are signed, so use longs -->
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12 <fieldType name="string" class="solr.StrField" omitNorms="true"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13 <fieldType name="long" class="solr.LongField" omitNorms="true"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
14 <fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
15 <fieldType name="float" class="solr.FloatField" omitNorms="true"/>
8492
ee1ecdda8a6b fts-solr: Keep last_uid field updated containing the mailbox's last added UID.
Timo Sirainen <tss@iki.fi>
parents: 8003
diff changeset
16 <fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
8003
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
17
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
18 <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
19 <analyzer type="index">
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
21 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
22 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
23 <filter class="solr.LowerCaseFilterFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
24 <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25 <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
26 </analyzer>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
27 <analyzer type="query">
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
28 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
29 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
30 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
31 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
32 <filter class="solr.LowerCaseFilterFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
33 <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
34 <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
35 </analyzer>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
36 </fieldType>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
37 </types>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
38
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
39
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
40 <fields>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
41 <field name="id" type="string" indexed="true" stored="true" required="true" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
42 <field name="uid" type="slong" indexed="true" stored="true" required="true" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
43 <field name="uidv" type="long" indexed="true" stored="true" required="true" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
44 <field name="box" type="string" indexed="true" stored="true" required="true" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
45 <field name="user" type="string" indexed="true" stored="true" required="true" />
8499
252b29ac5f43 fts: Added support for handling multiple namespaces.
Timo Sirainen <tss@iki.fi>
parents: 8492
diff changeset
46 <field name="ns" type="string" indexed="true" stored="true" required="false" />
8492
ee1ecdda8a6b fts-solr: Keep last_uid field updated containing the mailbox's last added UID.
Timo Sirainen <tss@iki.fi>
parents: 8003
diff changeset
47 <field name="last_uid" type="boolean" indexed="true" stored="false" />
8003
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
48 <field name="hdr" type="text" indexed="true" stored="false" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
49 <field name="body" type="text" indexed="true" stored="false" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
50 <field name="any" type="text" indexed="true" stored="false" multiValued="true" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
51 </fields>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
52
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
53 <uniqueKey>id</uniqueKey>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
54 <defaultSearchField>any</defaultSearchField>
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
55 <solrQueryParser defaultOperator="AND" />
d6d7be735b40 Moved Solr schema.xml to doc/.
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
56 </schema>