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