annotate sites/all/modules/custom/solrconnect/solr-conf/solr-1.4/schema.xml @ 0:015d06b10d37 default tip

initial
author dwinter
date Wed, 31 Jul 2013 13:49:13 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
015d06b10d37 initial
dwinter
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8" ?>
015d06b10d37 initial
dwinter
parents:
diff changeset
2
015d06b10d37 initial
dwinter
parents:
diff changeset
3 <!--
015d06b10d37 initial
dwinter
parents:
diff changeset
4 This is the Solr schema file. This file should be named "schema.xml" and
015d06b10d37 initial
dwinter
parents:
diff changeset
5 should be in the conf directory under the solr home
015d06b10d37 initial
dwinter
parents:
diff changeset
6 (i.e. ./solr/conf/schema.xml by default)
015d06b10d37 initial
dwinter
parents:
diff changeset
7 or located where the classloader for the Solr webapp can find it.
015d06b10d37 initial
dwinter
parents:
diff changeset
8
015d06b10d37 initial
dwinter
parents:
diff changeset
9 For more information, on how to customize this file, please see
015d06b10d37 initial
dwinter
parents:
diff changeset
10 http://wiki.apache.org/solr/SchemaXml
015d06b10d37 initial
dwinter
parents:
diff changeset
11 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
12
015d06b10d37 initial
dwinter
parents:
diff changeset
13 <schema name="drupal-3.0-0-solr1.4" version="1.2">
015d06b10d37 initial
dwinter
parents:
diff changeset
14 <!-- attribute "name" is the name of this schema and is only used for display purposes.
015d06b10d37 initial
dwinter
parents:
diff changeset
15 Applications should change this to reflect the nature of the search collection.
015d06b10d37 initial
dwinter
parents:
diff changeset
16 version="1.2" is Solr's version number for the schema syntax and semantics. It should
015d06b10d37 initial
dwinter
parents:
diff changeset
17 not normally be changed by applications.
015d06b10d37 initial
dwinter
parents:
diff changeset
18 1.0: multiValued attribute did not exist, all fields are multiValued by nature
015d06b10d37 initial
dwinter
parents:
diff changeset
19 1.1: multiValued attribute introduced, false by default
015d06b10d37 initial
dwinter
parents:
diff changeset
20 1.2: omitTermFreqAndPositions attribute introduced, true by default except for text fields.
015d06b10d37 initial
dwinter
parents:
diff changeset
21 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
22 <types>
015d06b10d37 initial
dwinter
parents:
diff changeset
23 <!-- field type definitions. The "name" attribute is
015d06b10d37 initial
dwinter
parents:
diff changeset
24 just a label to be used by field definitions. The "class"
015d06b10d37 initial
dwinter
parents:
diff changeset
25 attribute and any other attributes determine the real
015d06b10d37 initial
dwinter
parents:
diff changeset
26 behavior of the fieldType.
015d06b10d37 initial
dwinter
parents:
diff changeset
27 Class names starting with "solr" refer to java classes in the
015d06b10d37 initial
dwinter
parents:
diff changeset
28 org.apache.solr.analysis package.
015d06b10d37 initial
dwinter
parents:
diff changeset
29 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
30
015d06b10d37 initial
dwinter
parents:
diff changeset
31 <!-- The StrField type is not analyzed, but indexed/stored verbatim.
015d06b10d37 initial
dwinter
parents:
diff changeset
32 - StrField and TextField support an optional compressThreshold which
015d06b10d37 initial
dwinter
parents:
diff changeset
33 limits compression (if enabled in the derived fields) to values which
015d06b10d37 initial
dwinter
parents:
diff changeset
34 exceed a certain size (in characters).
015d06b10d37 initial
dwinter
parents:
diff changeset
35 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
36 <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
37
015d06b10d37 initial
dwinter
parents:
diff changeset
38 <!-- boolean type: "true" or "false" -->
015d06b10d37 initial
dwinter
parents:
diff changeset
39 <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
40 <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
015d06b10d37 initial
dwinter
parents:
diff changeset
41 <fieldtype name="binary" class="solr.BinaryField"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
42
015d06b10d37 initial
dwinter
parents:
diff changeset
43 <!-- The optional sortMissingLast and sortMissingFirst attributes are
015d06b10d37 initial
dwinter
parents:
diff changeset
44 currently supported on types that are sorted internally as strings.
015d06b10d37 initial
dwinter
parents:
diff changeset
45 - If sortMissingLast="true", then a sort on this field will cause documents
015d06b10d37 initial
dwinter
parents:
diff changeset
46 without the field to come after documents with the field,
015d06b10d37 initial
dwinter
parents:
diff changeset
47 regardless of the requested sort order (asc or desc).
015d06b10d37 initial
dwinter
parents:
diff changeset
48 - If sortMissingFirst="true", then a sort on this field will cause documents
015d06b10d37 initial
dwinter
parents:
diff changeset
49 without the field to come before documents with the field,
015d06b10d37 initial
dwinter
parents:
diff changeset
50 regardless of the requested sort order.
015d06b10d37 initial
dwinter
parents:
diff changeset
51 - If sortMissingLast="false" and sortMissingFirst="false" (the default),
015d06b10d37 initial
dwinter
parents:
diff changeset
52 then default lucene sorting will be used which places docs without the
015d06b10d37 initial
dwinter
parents:
diff changeset
53 field first in an ascending sort and last in a descending sort.
015d06b10d37 initial
dwinter
parents:
diff changeset
54 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
55
015d06b10d37 initial
dwinter
parents:
diff changeset
56 <!-- numeric field types that can be sorted, but are not optimized for range queries -->
015d06b10d37 initial
dwinter
parents:
diff changeset
57 <fieldType name="integer" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
58 <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
59 <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
60 <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
61
015d06b10d37 initial
dwinter
parents:
diff changeset
62 <!--
015d06b10d37 initial
dwinter
parents:
diff changeset
63 Note:
015d06b10d37 initial
dwinter
parents:
diff changeset
64 These should only be used for compatibility with existing indexes (created with older Solr versions)
015d06b10d37 initial
dwinter
parents:
diff changeset
65 or if "sortMissingFirst" or "sortMissingLast" functionality is needed. Use Trie based fields instead.
015d06b10d37 initial
dwinter
parents:
diff changeset
66
015d06b10d37 initial
dwinter
parents:
diff changeset
67 Numeric field types that manipulate the value into
015d06b10d37 initial
dwinter
parents:
diff changeset
68 a string value that isn't human-readable in its internal form,
015d06b10d37 initial
dwinter
parents:
diff changeset
69 but with a lexicographic ordering the same as the numeric ordering,
015d06b10d37 initial
dwinter
parents:
diff changeset
70 so that range queries work correctly.
015d06b10d37 initial
dwinter
parents:
diff changeset
71 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
72 <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
73 <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
74 <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
75 <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
76
015d06b10d37 initial
dwinter
parents:
diff changeset
77 <!--
015d06b10d37 initial
dwinter
parents:
diff changeset
78 Numeric field types that index each value at various levels of precision
015d06b10d37 initial
dwinter
parents:
diff changeset
79 to accelerate range queries when the number of values between the range
015d06b10d37 initial
dwinter
parents:
diff changeset
80 endpoints is large. See the javadoc for NumericRangeQuery for internal
015d06b10d37 initial
dwinter
parents:
diff changeset
81 implementation details.
015d06b10d37 initial
dwinter
parents:
diff changeset
82
015d06b10d37 initial
dwinter
parents:
diff changeset
83 Smaller precisionStep values (specified in bits) will lead to more tokens
015d06b10d37 initial
dwinter
parents:
diff changeset
84 indexed per value, slightly larger index size, and faster range queries.
015d06b10d37 initial
dwinter
parents:
diff changeset
85 A precisionStep of 0 disables indexing at different precision levels.
015d06b10d37 initial
dwinter
parents:
diff changeset
86 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
87 <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
88 <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
89 <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
90 <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
91
015d06b10d37 initial
dwinter
parents:
diff changeset
92
015d06b10d37 initial
dwinter
parents:
diff changeset
93 <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
015d06b10d37 initial
dwinter
parents:
diff changeset
94 is a more restricted form of the canonical representation of dateTime
015d06b10d37 initial
dwinter
parents:
diff changeset
95 http://www.w3.org/TR/xmlschema-2/#dateTime
015d06b10d37 initial
dwinter
parents:
diff changeset
96 The trailing "Z" designates UTC time and is mandatory.
015d06b10d37 initial
dwinter
parents:
diff changeset
97 Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
015d06b10d37 initial
dwinter
parents:
diff changeset
98 All other components are mandatory.
015d06b10d37 initial
dwinter
parents:
diff changeset
99
015d06b10d37 initial
dwinter
parents:
diff changeset
100 Expressions can also be used to denote calculations that should be
015d06b10d37 initial
dwinter
parents:
diff changeset
101 performed relative to "NOW" to determine the value, ie...
015d06b10d37 initial
dwinter
parents:
diff changeset
102
015d06b10d37 initial
dwinter
parents:
diff changeset
103 NOW/HOUR
015d06b10d37 initial
dwinter
parents:
diff changeset
104 ... Round to the start of the current hour
015d06b10d37 initial
dwinter
parents:
diff changeset
105 NOW-1DAY
015d06b10d37 initial
dwinter
parents:
diff changeset
106 ... Exactly 1 day prior to now
015d06b10d37 initial
dwinter
parents:
diff changeset
107 NOW/DAY+6MONTHS+3DAYS
015d06b10d37 initial
dwinter
parents:
diff changeset
108 ... 6 months and 3 days in the future from the start of
015d06b10d37 initial
dwinter
parents:
diff changeset
109 the current day
015d06b10d37 initial
dwinter
parents:
diff changeset
110
015d06b10d37 initial
dwinter
parents:
diff changeset
111 Consult the DateField javadocs for more information.
015d06b10d37 initial
dwinter
parents:
diff changeset
112 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
113 <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
114
015d06b10d37 initial
dwinter
parents:
diff changeset
115 <!-- A Trie based date field for faster date range queries and date faceting. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
116 <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" precisionStep="6" positionIncrementGap="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
117
015d06b10d37 initial
dwinter
parents:
diff changeset
118 <!-- solr.TextField allows the specification of custom text analyzers
015d06b10d37 initial
dwinter
parents:
diff changeset
119 specified as a tokenizer and a list of token filters. Different
015d06b10d37 initial
dwinter
parents:
diff changeset
120 analyzers may be specified for indexing and querying.
015d06b10d37 initial
dwinter
parents:
diff changeset
121
015d06b10d37 initial
dwinter
parents:
diff changeset
122 The optional positionIncrementGap puts space between multiple fields of
015d06b10d37 initial
dwinter
parents:
diff changeset
123 this type on the same document, with the purpose of preventing false phrase
015d06b10d37 initial
dwinter
parents:
diff changeset
124 matching across fields.
015d06b10d37 initial
dwinter
parents:
diff changeset
125
015d06b10d37 initial
dwinter
parents:
diff changeset
126 For more info on customizing your analyzer chain, please see
015d06b10d37 initial
dwinter
parents:
diff changeset
127 http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
015d06b10d37 initial
dwinter
parents:
diff changeset
128 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
129
015d06b10d37 initial
dwinter
parents:
diff changeset
130 <!-- One can also specify an existing Analyzer class that has a
015d06b10d37 initial
dwinter
parents:
diff changeset
131 default constructor via the class attribute on the analyzer element
015d06b10d37 initial
dwinter
parents:
diff changeset
132 <fieldType name="text_greek" class="solr.TextField">
015d06b10d37 initial
dwinter
parents:
diff changeset
133 <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
134 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
135 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
136
015d06b10d37 initial
dwinter
parents:
diff changeset
137 <!-- A text field that only splits on whitespace for exact matching of words -->
015d06b10d37 initial
dwinter
parents:
diff changeset
138 <fieldType name="text_ws" class="solr.TextField" omitNorms="true" positionIncrementGap="100">
015d06b10d37 initial
dwinter
parents:
diff changeset
139 <analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
140 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
141 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
142 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
143 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
144
015d06b10d37 initial
dwinter
parents:
diff changeset
145 <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of
015d06b10d37 initial
dwinter
parents:
diff changeset
146 words on case-change, alpha numeric boundaries, and non-alphanumeric chars,
015d06b10d37 initial
dwinter
parents:
diff changeset
147 so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi".
015d06b10d37 initial
dwinter
parents:
diff changeset
148 Synonyms and stopwords are customized by external files, and stemming is enabled.
015d06b10d37 initial
dwinter
parents:
diff changeset
149 Duplicate tokens at the same position (which may result from Stemmed Synonyms or
015d06b10d37 initial
dwinter
parents:
diff changeset
150 WordDelim parts) are removed.
015d06b10d37 initial
dwinter
parents:
diff changeset
151 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
152 <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
015d06b10d37 initial
dwinter
parents:
diff changeset
153 <analyzer type="index">
015d06b10d37 initial
dwinter
parents:
diff changeset
154 <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
155 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
156 <!-- in this example, we will only use synonyms at query time
015d06b10d37 initial
dwinter
parents:
diff changeset
157 <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
158 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
159 <!-- Case insensitive stop word removal.
015d06b10d37 initial
dwinter
parents:
diff changeset
160 add enablePositionIncrements=true in both the index and query
015d06b10d37 initial
dwinter
parents:
diff changeset
161 analyzers to leave a 'gap' for more accurate phrase queries.
015d06b10d37 initial
dwinter
parents:
diff changeset
162 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
163 <filter class="solr.StopFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
164 ignoreCase="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
165 words="stopwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
166 enablePositionIncrements="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
167 />
015d06b10d37 initial
dwinter
parents:
diff changeset
168 <filter class="solr.WordDelimiterFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
169 protected="protwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
170 generateWordParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
171 generateNumberParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
172 catenateWords="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
173 catenateNumbers="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
174 catenateAll="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
175 splitOnCaseChange="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
176 preserveOriginal="1"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
177 <filter class="solr.LengthFilterFactory" min="2" max="100" />
015d06b10d37 initial
dwinter
parents:
diff changeset
178 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
179 <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
180 <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
181 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
182 <analyzer type="query">
015d06b10d37 initial
dwinter
parents:
diff changeset
183 <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
184 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
185 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
186 <filter class="solr.StopFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
187 ignoreCase="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
188 words="stopwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
189 enablePositionIncrements="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
190 />
015d06b10d37 initial
dwinter
parents:
diff changeset
191 <filter class="solr.WordDelimiterFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
192 protected="protwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
193 generateWordParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
194 generateNumberParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
195 catenateWords="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
196 catenateNumbers="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
197 catenateAll="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
198 splitOnCaseChange="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
199 preserveOriginal="1"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
200 <filter class="solr.LengthFilterFactory" min="2" max="100" />
015d06b10d37 initial
dwinter
parents:
diff changeset
201 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
202 <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
203 <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
204 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
205 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
206
015d06b10d37 initial
dwinter
parents:
diff changeset
207 <!-- An unstemmed text field - good if one does not know the language of the field -->
015d06b10d37 initial
dwinter
parents:
diff changeset
208 <fieldType name="text_und" class="solr.TextField" positionIncrementGap="100">
015d06b10d37 initial
dwinter
parents:
diff changeset
209 <analyzer type="index">
015d06b10d37 initial
dwinter
parents:
diff changeset
210 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
211 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
212 <filter class="solr.WordDelimiterFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
213 protected="protwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
214 generateWordParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
215 generateNumberParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
216 catenateWords="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
217 catenateNumbers="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
218 catenateAll="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
219 splitOnCaseChange="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
220 <filter class="solr.LengthFilterFactory" min="2" max="100" />
015d06b10d37 initial
dwinter
parents:
diff changeset
221 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
222 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
223 <analyzer type="query">
015d06b10d37 initial
dwinter
parents:
diff changeset
224 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
225 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
226 <filter class="solr.StopFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
227 ignoreCase="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
228 words="stopwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
229 enablePositionIncrements="true"
015d06b10d37 initial
dwinter
parents:
diff changeset
230 />
015d06b10d37 initial
dwinter
parents:
diff changeset
231 <filter class="solr.WordDelimiterFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
232 protected="protwords.txt"
015d06b10d37 initial
dwinter
parents:
diff changeset
233 generateWordParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
234 generateNumberParts="1"
015d06b10d37 initial
dwinter
parents:
diff changeset
235 catenateWords="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
236 catenateNumbers="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
237 catenateAll="0"
015d06b10d37 initial
dwinter
parents:
diff changeset
238 splitOnCaseChange="0"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
239 <filter class="solr.LengthFilterFactory" min="2" max="100" />
015d06b10d37 initial
dwinter
parents:
diff changeset
240 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
241 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
242 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
243
015d06b10d37 initial
dwinter
parents:
diff changeset
244 <!-- Edge N gram type - for example for matching against queries with results
015d06b10d37 initial
dwinter
parents:
diff changeset
245 KeywordTokenizer leaves input string intact as a single term.
015d06b10d37 initial
dwinter
parents:
diff changeset
246 see: http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
015d06b10d37 initial
dwinter
parents:
diff changeset
247 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
248 <fieldType name="edge_n2_kw_text" class="solr.TextField" omitNorms="true" positionIncrementGap="100">
015d06b10d37 initial
dwinter
parents:
diff changeset
249 <analyzer type="index">
015d06b10d37 initial
dwinter
parents:
diff changeset
250 <tokenizer class="solr.KeywordTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
251 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
252 <filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="25" />
015d06b10d37 initial
dwinter
parents:
diff changeset
253 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
254 <analyzer type="query">
015d06b10d37 initial
dwinter
parents:
diff changeset
255 <tokenizer class="solr.KeywordTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
256 <filter class="solr.LowerCaseFilterFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
257 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
258 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
259 <!-- Setup simple analysis for spell checking -->
015d06b10d37 initial
dwinter
parents:
diff changeset
260
015d06b10d37 initial
dwinter
parents:
diff changeset
261 <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100">
015d06b10d37 initial
dwinter
parents:
diff changeset
262 <analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
263 <tokenizer class="solr.StandardTokenizerFactory" />
015d06b10d37 initial
dwinter
parents:
diff changeset
264 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
265 <filter class="solr.LengthFilterFactory" min="4" max="20" />
015d06b10d37 initial
dwinter
parents:
diff changeset
266 <filter class="solr.LowerCaseFilterFactory" />
015d06b10d37 initial
dwinter
parents:
diff changeset
267 <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
015d06b10d37 initial
dwinter
parents:
diff changeset
268 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
269 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
270
015d06b10d37 initial
dwinter
parents:
diff changeset
271 <!-- This is an example of using the KeywordTokenizer along
015d06b10d37 initial
dwinter
parents:
diff changeset
272 With various TokenFilterFactories to produce a sortable field
015d06b10d37 initial
dwinter
parents:
diff changeset
273 that does not include some properties of the source text
015d06b10d37 initial
dwinter
parents:
diff changeset
274 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
275 <fieldType name="sortString" class="solr.TextField" sortMissingLast="true" omitNorms="true">
015d06b10d37 initial
dwinter
parents:
diff changeset
276 <analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
277 <!-- KeywordTokenizer does no actual tokenizing, so the entire
015d06b10d37 initial
dwinter
parents:
diff changeset
278 input string is preserved as a single token
015d06b10d37 initial
dwinter
parents:
diff changeset
279 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
280 <tokenizer class="solr.KeywordTokenizerFactory"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
281 <!-- The LowerCase TokenFilter does what you expect, which can be
015d06b10d37 initial
dwinter
parents:
diff changeset
282 when you want your sorting to be case insensitive
015d06b10d37 initial
dwinter
parents:
diff changeset
283 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
284 <filter class="solr.LowerCaseFilterFactory" />
015d06b10d37 initial
dwinter
parents:
diff changeset
285 <!-- The TrimFilter removes any leading or trailing whitespace -->
015d06b10d37 initial
dwinter
parents:
diff changeset
286 <filter class="solr.TrimFilterFactory" />
015d06b10d37 initial
dwinter
parents:
diff changeset
287 <!-- The PatternReplaceFilter gives you the flexibility to use
015d06b10d37 initial
dwinter
parents:
diff changeset
288 Java Regular expression to replace any sequence of characters
015d06b10d37 initial
dwinter
parents:
diff changeset
289 matching a pattern with an arbitrary replacement string,
015d06b10d37 initial
dwinter
parents:
diff changeset
290 which may include back refrences to portions of the orriginal
015d06b10d37 initial
dwinter
parents:
diff changeset
291 string matched by the pattern.
015d06b10d37 initial
dwinter
parents:
diff changeset
292
015d06b10d37 initial
dwinter
parents:
diff changeset
293 See the Java Regular Expression documentation for more
015d06b10d37 initial
dwinter
parents:
diff changeset
294 infomation on pattern and replacement string syntax.
015d06b10d37 initial
dwinter
parents:
diff changeset
295
015d06b10d37 initial
dwinter
parents:
diff changeset
296 http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html
015d06b10d37 initial
dwinter
parents:
diff changeset
297
015d06b10d37 initial
dwinter
parents:
diff changeset
298 <filter class="solr.PatternReplaceFilterFactory"
015d06b10d37 initial
dwinter
parents:
diff changeset
299 pattern="(^\p{Punct}+)" replacement="" replace="all"
015d06b10d37 initial
dwinter
parents:
diff changeset
300 />
015d06b10d37 initial
dwinter
parents:
diff changeset
301 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
302 </analyzer>
015d06b10d37 initial
dwinter
parents:
diff changeset
303 </fieldType>
015d06b10d37 initial
dwinter
parents:
diff changeset
304
015d06b10d37 initial
dwinter
parents:
diff changeset
305 <!-- A random sort type -->
015d06b10d37 initial
dwinter
parents:
diff changeset
306 <fieldType name="rand" class="solr.RandomSortField" indexed="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
307
015d06b10d37 initial
dwinter
parents:
diff changeset
308 <!-- since fields of this type are by default not stored or indexed, any data added to
015d06b10d37 initial
dwinter
parents:
diff changeset
309 them will be ignored outright
015d06b10d37 initial
dwinter
parents:
diff changeset
310 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
311 <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" />
015d06b10d37 initial
dwinter
parents:
diff changeset
312
015d06b10d37 initial
dwinter
parents:
diff changeset
313 </types>
015d06b10d37 initial
dwinter
parents:
diff changeset
314
015d06b10d37 initial
dwinter
parents:
diff changeset
315
015d06b10d37 initial
dwinter
parents:
diff changeset
316 <fields>
015d06b10d37 initial
dwinter
parents:
diff changeset
317 <!-- Valid attributes for fields:
015d06b10d37 initial
dwinter
parents:
diff changeset
318 name: mandatory - the name for the field
015d06b10d37 initial
dwinter
parents:
diff changeset
319 type: mandatory - the name of a previously defined type from the <types> section
015d06b10d37 initial
dwinter
parents:
diff changeset
320 indexed: true if this field should be indexed (searchable or sortable)
015d06b10d37 initial
dwinter
parents:
diff changeset
321 stored: true if this field should be retrievable
015d06b10d37 initial
dwinter
parents:
diff changeset
322 compressed: [false] if this field should be stored using gzip compression
015d06b10d37 initial
dwinter
parents:
diff changeset
323 (this will only apply if the field type is compressable; among
015d06b10d37 initial
dwinter
parents:
diff changeset
324 the standard field types, only TextField and StrField are)
015d06b10d37 initial
dwinter
parents:
diff changeset
325 multiValued: true if this field may contain multiple values per document
015d06b10d37 initial
dwinter
parents:
diff changeset
326 omitNorms: (expert) set to true to omit the norms associated with
015d06b10d37 initial
dwinter
parents:
diff changeset
327 this field (this disables length normalization and index-time
015d06b10d37 initial
dwinter
parents:
diff changeset
328 boosting for the field, and saves some memory). Only full-text
015d06b10d37 initial
dwinter
parents:
diff changeset
329 fields or fields that need an index-time boost need norms.
015d06b10d37 initial
dwinter
parents:
diff changeset
330 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
331
015d06b10d37 initial
dwinter
parents:
diff changeset
332 <!-- The document id is usually derived from a site-spcific key (hash) and the entity type and ID like:
015d06b10d37 initial
dwinter
parents:
diff changeset
333 $document->id = $hash . '/node/' . $node->nid; -->
015d06b10d37 initial
dwinter
parents:
diff changeset
334
015d06b10d37 initial
dwinter
parents:
diff changeset
335 <field name="id" type="string" indexed="true" stored="true" required="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
336 <!-- entity_id is the numeric object ID, e.g. Node ID, File ID -->
015d06b10d37 initial
dwinter
parents:
diff changeset
337 <field name="entity_id" type="long" indexed="true" stored="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
338 <!-- entity_type is 'node', 'file', 'user', or some other Drupal object type -->
015d06b10d37 initial
dwinter
parents:
diff changeset
339 <field name="entity_type" type="string" indexed="true" stored="true" required="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
340 <!-- bundle is a node type, or as appropriate for other entity types -->
015d06b10d37 initial
dwinter
parents:
diff changeset
341 <field name="bundle" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
342 <field name="bundle_name" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
343
015d06b10d37 initial
dwinter
parents:
diff changeset
344 <field name="site" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
345 <field name="hash" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
346 <field name="url" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
347 <!-- label is the default field for a human-readable string for this entity (e.g. the title of a node) -->
015d06b10d37 initial
dwinter
parents:
diff changeset
348 <field name="label" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
349 <!-- The string version of the title is used for sorting -->
015d06b10d37 initial
dwinter
parents:
diff changeset
350 <copyField source="label" dest="sort_label"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
351 <!-- content is the default field for full text search - dump crap here -->
015d06b10d37 initial
dwinter
parents:
diff changeset
352 <field name="content" type="text" indexed="true" stored="true" termVectors="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
353 <field name="teaser" type="text" indexed="false" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
354
015d06b10d37 initial
dwinter
parents:
diff changeset
355 <field name="path" type="string" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
356 <field name="path_alias" type="text" indexed="true" stored="true" termVectors="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
357
015d06b10d37 initial
dwinter
parents:
diff changeset
358 <!-- These are the fields that correspond to a Drupal node. The beauty of having
015d06b10d37 initial
dwinter
parents:
diff changeset
359 Lucene store title, body, type, etc., is that we retrieve them with the search
015d06b10d37 initial
dwinter
parents:
diff changeset
360 result set and don't need to go to the database with a node_load. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
361
015d06b10d37 initial
dwinter
parents:
diff changeset
362 <field name="tid" type="long" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
363
015d06b10d37 initial
dwinter
parents:
diff changeset
364 <field name="taxonomy_names" type="text" indexed="true" stored="false" termVectors="true" multiValued="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
365 <!-- Copy terms to a single field that contains all taxonomy term names -->
015d06b10d37 initial
dwinter
parents:
diff changeset
366 <copyField source="tm_vid_*" dest="taxonomy_names"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
367
015d06b10d37 initial
dwinter
parents:
diff changeset
368 <!-- Here, default is used to create a "timestamp" field indicating
015d06b10d37 initial
dwinter
parents:
diff changeset
369 when each document was indexed.-->
015d06b10d37 initial
dwinter
parents:
diff changeset
370 <field name="timestamp" type="tdate" indexed="true" stored="true" default="NOW" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
371
015d06b10d37 initial
dwinter
parents:
diff changeset
372 <!-- This field is used to build the spellchecker index -->
015d06b10d37 initial
dwinter
parents:
diff changeset
373 <field name="spell" type="textSpell" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
374
015d06b10d37 initial
dwinter
parents:
diff changeset
375 <!-- copyField commands copy one field to another at the time a document
015d06b10d37 initial
dwinter
parents:
diff changeset
376 is added to the index. It's used either to index the same field differently,
015d06b10d37 initial
dwinter
parents:
diff changeset
377 or to add multiple fields to the same field for easier/faster searching. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
378 <copyField source="label" dest="spell"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
379 <copyField source="content" dest="spell"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
380
015d06b10d37 initial
dwinter
parents:
diff changeset
381 <!-- Dynamic field definitions. If a field name is not found, dynamicFields
015d06b10d37 initial
dwinter
parents:
diff changeset
382 will be used if the name matches any of the patterns.
015d06b10d37 initial
dwinter
parents:
diff changeset
383 RESTRICTION: the glob-like pattern in the name attribute must have
015d06b10d37 initial
dwinter
parents:
diff changeset
384 a "*" only at the start or the end.
015d06b10d37 initial
dwinter
parents:
diff changeset
385 EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)
015d06b10d37 initial
dwinter
parents:
diff changeset
386 Longer patterns will be matched first. if equal size patterns
015d06b10d37 initial
dwinter
parents:
diff changeset
387 both match, the first appearing in the schema will be used. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
388
015d06b10d37 initial
dwinter
parents:
diff changeset
389 <!-- A set of fields to contain text extracted from HTML tag contents which we
015d06b10d37 initial
dwinter
parents:
diff changeset
390 can boost at query time. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
391 <dynamicField name="tags_*" type="text" indexed="true" stored="false" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
392
015d06b10d37 initial
dwinter
parents:
diff changeset
393 <!-- For 2 and 3 letter prefix dynamic fields, the 1st letter indicates the data type and
015d06b10d37 initial
dwinter
parents:
diff changeset
394 the last letter is 's' for single valued, 'm' for multi-valued -->
015d06b10d37 initial
dwinter
parents:
diff changeset
395
015d06b10d37 initial
dwinter
parents:
diff changeset
396 <!-- We use long for integer since 64 bit ints are now common in PHP. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
397 <dynamicField name="is_*" type="long" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
398 <dynamicField name="im_*" type="long" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
399 <!-- List of floats can be saved in a regular float field -->
015d06b10d37 initial
dwinter
parents:
diff changeset
400 <dynamicField name="fs_*" type="float" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
401 <dynamicField name="fm_*" type="float" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
402 <!-- List of booleans can be saved in a regular boolean field -->
015d06b10d37 initial
dwinter
parents:
diff changeset
403 <dynamicField name="bm_*" type="boolean" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
404 <dynamicField name="bs_*" type="boolean" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
405 <!-- Regular text (without processing) can be stored in a string field-->
015d06b10d37 initial
dwinter
parents:
diff changeset
406 <dynamicField name="ss_*" type="string" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
407 <dynamicField name="sm_*" type="string" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
408 <!-- Normal text fields are for full text - the relevance of a match depends on the length of the text -->
015d06b10d37 initial
dwinter
parents:
diff changeset
409 <dynamicField name="ts_*" type="text" indexed="true" stored="true" multiValued="false" termVectors="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
410 <dynamicField name="tm_*" type="text" indexed="true" stored="true" multiValued="true" termVectors="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
411 <!-- Unstemmed text fields for full text - the relevance of a match depends on the length of the text -->
015d06b10d37 initial
dwinter
parents:
diff changeset
412 <dynamicField name="tus_*" type="text_und" indexed="true" stored="true" multiValued="false" termVectors="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
413 <dynamicField name="tum_*" type="text_und" indexed="true" stored="true" multiValued="true" termVectors="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
414 <!-- These text fields omit norms - useful for extracted text like taxonomy_names -->
015d06b10d37 initial
dwinter
parents:
diff changeset
415 <dynamicField name="tos_*" type="text" indexed="true" stored="true" multiValued="false" termVectors="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
416 <dynamicField name="tom_*" type="text" indexed="true" stored="true" multiValued="true" termVectors="true" omitNorms="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
417 <!-- Special-purpose text fields -->
015d06b10d37 initial
dwinter
parents:
diff changeset
418 <dynamicField name="tes_*" type="edge_n2_kw_text" indexed="true" stored="true" multiValued="false" omitTermFreqAndPositions="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
419 <dynamicField name="tem_*" type="edge_n2_kw_text" indexed="true" stored="true" multiValued="true" omitTermFreqAndPositions="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
420 <dynamicField name="tws_*" type="text_ws" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
421 <dynamicField name="twm_*" type="text_ws" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
422
015d06b10d37 initial
dwinter
parents:
diff changeset
423 <!-- trie dates are preferred, so give them the 2 letter prefix -->
015d06b10d37 initial
dwinter
parents:
diff changeset
424 <dynamicField name="ds_*" type="tdate" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
425 <dynamicField name="dm_*" type="tdate" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
426 <dynamicField name="its_*" type="tlong" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
427 <dynamicField name="itm_*" type="tlong" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
428 <dynamicField name="fts_*" type="tfloat" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
429 <dynamicField name="ftm_*" type="tfloat" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
430 <dynamicField name="pts_*" type="tdouble" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
431 <dynamicField name="ptm_*" type="tdouble" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
432 <!-- Binary fields can be populated using base64 encoded data. Useful e.g. for embedding
015d06b10d37 initial
dwinter
parents:
diff changeset
433 a small image in a search result using the data URI scheme -->
015d06b10d37 initial
dwinter
parents:
diff changeset
434 <dynamicField name="xs_*" type="binary" indexed="false" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
435 <dynamicField name="xm_*" type="binary" indexed="false" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
436 <!-- In rare cases a date rather than tdate is needed for sortMissingLast -->
015d06b10d37 initial
dwinter
parents:
diff changeset
437 <dynamicField name="dds_*" type="date" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
438 <dynamicField name="ddm_*" type="date" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
439 <!-- Sortable fields, good for sortMissingLast support &
015d06b10d37 initial
dwinter
parents:
diff changeset
440 We use long for integer since 64 bit ints are now common in PHP. -->
015d06b10d37 initial
dwinter
parents:
diff changeset
441 <dynamicField name="iss_*" type="slong" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
442 <dynamicField name="ism_*" type="slong" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
443 <!-- In rare cases a sfloat rather than tfloat is needed for sortMissingLast -->
015d06b10d37 initial
dwinter
parents:
diff changeset
444 <dynamicField name="fss_*" type="sfloat" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
445 <dynamicField name="fsm_*" type="sfloat" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
446 <dynamicField name="pss_*" type="sdouble" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
447 <dynamicField name="psm_*" type="sdouble" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
448 <!-- In case a 32 bit int is really needed, we provide these fields. 'h' is mnemonic for 'half word', i.e. 32 bit on 64 arch -->
015d06b10d37 initial
dwinter
parents:
diff changeset
449 <dynamicField name="hs_*" type="integer" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
450 <dynamicField name="hm_*" type="integer" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
451 <dynamicField name="hss_*" type="sint" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
452 <dynamicField name="hsm_*" type="sint" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
453 <dynamicField name="hts_*" type="tint" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
454 <dynamicField name="htm_*" type="tint" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
455
015d06b10d37 initial
dwinter
parents:
diff changeset
456 <!-- Unindexed string fields that can be used to store values that won't be searchable -->
015d06b10d37 initial
dwinter
parents:
diff changeset
457 <dynamicField name="zs_*" type="string" indexed="false" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
458 <dynamicField name="zm_*" type="string" indexed="false" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
459
015d06b10d37 initial
dwinter
parents:
diff changeset
460 <!-- Begin added fields to support modules that use features in Solr 3.4
015d06b10d37 initial
dwinter
parents:
diff changeset
461 but are actually using solr 1.4 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
462 <dynamicField name="points_*" type="string" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
463 <dynamicField name="pointm_*" type="string" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
464 <dynamicField name="locs_*" type="string" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
465 <dynamicField name="locm_*" type="string" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
466 <dynamicField name="geos_*" type="string" indexed="true" stored="true" multiValued="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
467 <dynamicField name="geom_*" type="string" indexed="true" stored="true" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
468 <!-- End added fields for the support of modules that should use solr 3.4 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
469
015d06b10d37 initial
dwinter
parents:
diff changeset
470 <!-- Sortable version of the dynamic string field -->
015d06b10d37 initial
dwinter
parents:
diff changeset
471 <dynamicField name="sort_*" type="sortString" indexed="true" stored="false"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
472 <copyField source="ss_*" dest="sort_*"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
473 <!-- A random sort field -->
015d06b10d37 initial
dwinter
parents:
diff changeset
474 <dynamicField name="random_*" type="rand" indexed="true" stored="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
475 <!-- This field is used to store access information (e.g. node access grants), as opposed to field data -->
015d06b10d37 initial
dwinter
parents:
diff changeset
476 <dynamicField name="access_*" type="integer" indexed="true" stored="false" multiValued="true"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
477
015d06b10d37 initial
dwinter
parents:
diff changeset
478 <!-- The following causes solr to ignore any fields that don't already match an existing
015d06b10d37 initial
dwinter
parents:
diff changeset
479 field name or dynamic field, rather than reporting them as an error.
015d06b10d37 initial
dwinter
parents:
diff changeset
480 Alternately, change the type="ignored" to some other type e.g. "text" if you want
015d06b10d37 initial
dwinter
parents:
diff changeset
481 unknown fields indexed and/or stored by default -->
015d06b10d37 initial
dwinter
parents:
diff changeset
482 <dynamicField name="*" type="ignored" multiValued="true" />
015d06b10d37 initial
dwinter
parents:
diff changeset
483
015d06b10d37 initial
dwinter
parents:
diff changeset
484 </fields>
015d06b10d37 initial
dwinter
parents:
diff changeset
485
015d06b10d37 initial
dwinter
parents:
diff changeset
486 <!-- Field to use to determine and enforce document uniqueness.
015d06b10d37 initial
dwinter
parents:
diff changeset
487 Unless this field is marked with required="false", it will be a required field
015d06b10d37 initial
dwinter
parents:
diff changeset
488 -->
015d06b10d37 initial
dwinter
parents:
diff changeset
489 <uniqueKey>id</uniqueKey>
015d06b10d37 initial
dwinter
parents:
diff changeset
490
015d06b10d37 initial
dwinter
parents:
diff changeset
491 <!-- field for the QueryParser to use when an explicit fieldname is absent -->
015d06b10d37 initial
dwinter
parents:
diff changeset
492 <defaultSearchField>content</defaultSearchField>
015d06b10d37 initial
dwinter
parents:
diff changeset
493
015d06b10d37 initial
dwinter
parents:
diff changeset
494 <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
015d06b10d37 initial
dwinter
parents:
diff changeset
495 <solrQueryParser defaultOperator="AND"/>
015d06b10d37 initial
dwinter
parents:
diff changeset
496
015d06b10d37 initial
dwinter
parents:
diff changeset
497 </schema>