allura
修訂 | 9051c993ef149622957c76ab55a4e442eec16b21 (tree) |
---|---|
時間 | 2012-04-23 22:51:28 |
作者 | Dave Brondsema <dbrondsema@geek...> |
Commiter | Dave Brondsema |
[#4065] remove old unused solr file, and unnecessary java deps
@@ -23,7 +23,7 @@ Before we begin, you'll need the following additional packages in order to work | ||
23 | 23 | |
24 | 24 | You'll also need additional development packages in order to compile some of the modules. [Use google for additional PIL/jpeg help.](http://www.google.com/search?q=ubuntu+pil+jpeg+virtualenv) |
25 | 25 | |
26 | - ~$ sudo aptitude install default-jdk python-dev libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev | |
26 | + ~$ sudo aptitude install default-jre-headless python-dev libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev | |
27 | 27 | ~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib |
28 | 28 | |
29 | 29 | And finally our document-oriented database, MongoDB |
@@ -1,503 +0,0 @@ | ||
1 | -<?xml version="1.0" encoding="UTF-8" ?> | |
2 | -<!-- | |
3 | - Licensed to the Apache Software Foundation (ASF) under one or more | |
4 | - contributor license agreements. See the NOTICE file distributed with | |
5 | - this work for additional information regarding copyright ownership. | |
6 | - The ASF licenses this file to You under the Apache License, Version 2.0 | |
7 | - (the "License"); you may not use this file except in compliance with | |
8 | - the License. You may obtain a copy of the License at | |
9 | - | |
10 | - http://www.apache.org/licenses/LICENSE-2.0 | |
11 | - | |
12 | - Unless required by applicable law or agreed to in writing, software | |
13 | - distributed under the License is distributed on an "AS IS" BASIS, | |
14 | - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
15 | - See the License for the specific language governing permissions and | |
16 | - limitations under the License. | |
17 | ---> | |
18 | - | |
19 | -<!-- | |
20 | - This is the Solr schema file. This file should be named "schema.xml" and | |
21 | - should be in the conf directory under the solr home | |
22 | - (i.e. ./solr/conf/schema.xml by default) | |
23 | - or located where the classloader for the Solr webapp can find it. | |
24 | - | |
25 | - This example schema is the recommended starting point for users. | |
26 | - It should be kept correct and concise, usable out-of-the-box. | |
27 | - | |
28 | - For more information, on how to customize this file, please see | |
29 | - http://wiki.apache.org/solr/SchemaXml | |
30 | ---> | |
31 | - | |
32 | -<schema name="example" version="1.1"> | |
33 | - <!-- attribute "name" is the name of this schema and is only used for display purposes. | |
34 | - Applications should change this to reflect the nature of the search collection. | |
35 | - version="1.1" is Solr's version number for the schema syntax and semantics. It should | |
36 | - not normally be changed by applications. | |
37 | - 1.0: multiValued attribute did not exist, all fields are multiValued by nature | |
38 | - 1.1: multiValued attribute introduced, false by default --> | |
39 | - | |
40 | - <types> | |
41 | - <!-- field type definitions. The "name" attribute is | |
42 | - just a label to be used by field definitions. The "class" | |
43 | - attribute and any other attributes determine the real | |
44 | - behavior of the fieldType. | |
45 | - Class names starting with "solr" refer to java classes in the | |
46 | - org.apache.solr.analysis package. | |
47 | - --> | |
48 | - | |
49 | - <!-- The StrField type is not analyzed, but indexed/stored verbatim. | |
50 | - - StrField and TextField support an optional compressThreshold which | |
51 | - limits compression (if enabled in the derived fields) to values which | |
52 | - exceed a certain size (in characters). | |
53 | - --> | |
54 | - <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> | |
55 | - | |
56 | - <!-- boolean type: "true" or "false" --> | |
57 | - <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/> | |
58 | - | |
59 | - <!-- The optional sortMissingLast and sortMissingFirst attributes are | |
60 | - currently supported on types that are sorted internally as strings. | |
61 | - - If sortMissingLast="true", then a sort on this field will cause documents | |
62 | - without the field to come after documents with the field, | |
63 | - regardless of the requested sort order (asc or desc). | |
64 | - - If sortMissingFirst="true", then a sort on this field will cause documents | |
65 | - without the field to come before documents with the field, | |
66 | - regardless of the requested sort order. | |
67 | - - If sortMissingLast="false" and sortMissingFirst="false" (the default), | |
68 | - then default lucene sorting will be used which places docs without the | |
69 | - field first in an ascending sort and last in a descending sort. | |
70 | - --> | |
71 | - | |
72 | - | |
73 | - <!-- numeric field types that store and index the text | |
74 | - value verbatim (and hence don't support range queries, since the | |
75 | - lexicographic ordering isn't equal to the numeric ordering) --> | |
76 | - <fieldType name="integer" class="solr.IntField" omitNorms="true"/> | |
77 | - <fieldType name="int" class="solr.IntField" omitNorms="true"/> | |
78 | - <fieldType name="long" class="solr.LongField" omitNorms="true"/> | |
79 | - <fieldType name="float" class="solr.FloatField" omitNorms="true"/> | |
80 | - <fieldType name="double" class="solr.DoubleField" omitNorms="true"/> | |
81 | - | |
82 | - | |
83 | - <!-- Numeric field types that manipulate the value into | |
84 | - a string value that isn't human-readable in its internal form, | |
85 | - but with a lexicographic ordering the same as the numeric ordering, | |
86 | - so that range queries work correctly. --> | |
87 | - <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/> | |
88 | - <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/> | |
89 | - <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/> | |
90 | - <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/> | |
91 | - | |
92 | - <!-- | |
93 | - Numeric field types that index each value at various levels of precision | |
94 | - to accelerate range queries when the number of values between the range | |
95 | - endpoints is large. See the javadoc for NumericRangeQuery for internal | |
96 | - implementation details. | |
97 | - | |
98 | - Smaller precisionStep values (specified in bits) will lead to more tokens | |
99 | - indexed per value, slightly larger index size, and faster range queries. | |
100 | - A precisionStep of 0 disables indexing at different precision levels. | |
101 | - --> | |
102 | - <!-- | |
103 | - <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> | |
104 | - <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> | |
105 | - <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> | |
106 | - <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> | |
107 | - --> | |
108 | - | |
109 | - <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and | |
110 | - is a more restricted form of the canonical representation of dateTime | |
111 | - http://www.w3.org/TR/xmlschema-2/#dateTime | |
112 | - The trailing "Z" designates UTC time and is mandatory. | |
113 | - Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z | |
114 | - All other components are mandatory. | |
115 | - | |
116 | - Expressions can also be used to denote calculations that should be | |
117 | - performed relative to "NOW" to determine the value, ie... | |
118 | - | |
119 | - NOW/HOUR | |
120 | - ... Round to the start of the current hour | |
121 | - NOW-1DAY | |
122 | - ... Exactly 1 day prior to now | |
123 | - NOW/DAY+6MONTHS+3DAYS | |
124 | - ... 6 months and 3 days in the future from the start of | |
125 | - the current day | |
126 | - | |
127 | - Consult the DateField javadocs for more information. | |
128 | - --> | |
129 | - <fieldType name="date" class="solr.DateField" sortMissingLast="true" omitNorms="true"/> | |
130 | - | |
131 | - | |
132 | - <!-- The "RandomSortField" is not used to store or search any | |
133 | - data. You can declare fields of this type it in your schema | |
134 | - to generate psuedo-random orderings of your docs for sorting | |
135 | - purposes. The ordering is generated based on the field name | |
136 | - and the version of the index, As long as the index version | |
137 | - remains unchanged, and the same field name is reused, | |
138 | - the ordering of the docs will be consistent. | |
139 | - If you want differend psuedo-random orderings of documents, | |
140 | - for the same version of the index, use a dynamicField and | |
141 | - change the name | |
142 | - --> | |
143 | - <fieldType name="random" class="solr.RandomSortField" indexed="true" /> | |
144 | - | |
145 | - <!-- solr.TextField allows the specification of custom text analyzers | |
146 | - specified as a tokenizer and a list of token filters. Different | |
147 | - analyzers may be specified for indexing and querying. | |
148 | - | |
149 | - The optional positionIncrementGap puts space between multiple fields of | |
150 | - this type on the same document, with the purpose of preventing false phrase | |
151 | - matching across fields. | |
152 | - | |
153 | - For more info on customizing your analyzer chain, please see | |
154 | - http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters | |
155 | - --> | |
156 | - | |
157 | - <!-- One can also specify an existing Analyzer class that has a | |
158 | - default constructor via the class attribute on the analyzer element | |
159 | - <fieldType name="text_greek" class="solr.TextField"> | |
160 | - <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/> | |
161 | - </fieldType> | |
162 | - --> | |
163 | - | |
164 | - <!-- A text field that only splits on whitespace for exact matching of words --> | |
165 | - <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100"> | |
166 | - <analyzer> | |
167 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
168 | - </analyzer> | |
169 | - </fieldType> | |
170 | - | |
171 | - <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of | |
172 | - words on case-change, alpha numeric boundaries, and non-alphanumeric chars, | |
173 | - so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi". | |
174 | - Synonyms and stopwords are customized by external files, and stemming is enabled. | |
175 | - Duplicate tokens at the same position (which may result from Stemmed Synonyms or | |
176 | - WordDelim parts) are removed. | |
177 | - --> | |
178 | - <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> | |
179 | - <analyzer type="index"> | |
180 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
181 | - <!-- in this example, we will only use synonyms at query time | |
182 | - <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/> | |
183 | - --> | |
184 | - <!-- Case insensitive stop word removal. | |
185 | - enablePositionIncrements=true ensures that a 'gap' is left to | |
186 | - allow for accurate phrase queries. | |
187 | - --> | |
188 | - <filter class="solr.StopFilterFactory" | |
189 | - ignoreCase="true" | |
190 | - words="stopwords.txt" | |
191 | - enablePositionIncrements="true" | |
192 | - /> | |
193 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> | |
194 | - <filter class="solr.LowerCaseFilterFactory"/> | |
195 | - <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> | |
196 | - <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> | |
197 | - </analyzer> | |
198 | - <analyzer type="query"> | |
199 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
200 | - <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> | |
201 | - <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> | |
202 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/> | |
203 | - <filter class="solr.LowerCaseFilterFactory"/> | |
204 | - <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> | |
205 | - <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> | |
206 | - </analyzer> | |
207 | - </fieldType> | |
208 | - | |
209 | - | |
210 | - <!-- Less flexible matching, but less false matches. Probably not ideal for product names, | |
211 | - but may be good for SKUs. Can insert dashes in the wrong place and still match. --> | |
212 | - <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" > | |
213 | - <analyzer> | |
214 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
215 | - <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/> | |
216 | - <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> | |
217 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> | |
218 | - <filter class="solr.LowerCaseFilterFactory"/> | |
219 | - <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/> | |
220 | - <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> | |
221 | - </analyzer> | |
222 | - </fieldType> | |
223 | - | |
224 | - <!-- A general unstemmed text field - good if one does not know the language of the field --> | |
225 | - <fieldType name="textgen" class="solr.TextField" positionIncrementGap="100"> | |
226 | - <analyzer type="index"> | |
227 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
228 | - <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> | |
229 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> | |
230 | - <filter class="solr.LowerCaseFilterFactory"/> | |
231 | - </analyzer> | |
232 | - <analyzer type="query"> | |
233 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
234 | - <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> | |
235 | - <filter class="solr.StopFilterFactory" | |
236 | - ignoreCase="true" | |
237 | - words="stopwords.txt" | |
238 | - enablePositionIncrements="true" | |
239 | - /> | |
240 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> | |
241 | - <filter class="solr.LowerCaseFilterFactory"/> | |
242 | - </analyzer> | |
243 | - </fieldType> | |
244 | - | |
245 | - <!-- A general unstemmed text field that indexes tokens normally and also | |
246 | - reversed (via ReversedWildcardFilterFactory), to enable more efficient | |
247 | - leading wildcard queries. --> | |
248 | - <!-- | |
249 | - <fieldType name="text_rev" class="solr.TextField" positionIncrementGap="100"> | |
250 | - <analyzer type="index"> | |
251 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
252 | - <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> | |
253 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> | |
254 | - <filter class="solr.LowerCaseFilterFactory"/> | |
255 | - <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true" | |
256 | - maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/> | |
257 | - </analyzer> | |
258 | - <analyzer type="query"> | |
259 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
260 | - <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> | |
261 | - <filter class="solr.StopFilterFactory" | |
262 | - ignoreCase="true" | |
263 | - words="stopwords.txt" | |
264 | - enablePositionIncrements="true" | |
265 | - /> | |
266 | - <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> | |
267 | - <filter class="solr.LowerCaseFilterFactory"/> | |
268 | - </analyzer> | |
269 | - </fieldType> | |
270 | - --> | |
271 | - | |
272 | - <!-- charFilter + WhitespaceTokenizer --> | |
273 | - <!-- | |
274 | - <fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" > | |
275 | - <analyzer> | |
276 | - <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/> | |
277 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
278 | - </analyzer> | |
279 | - </fieldType> | |
280 | - --> | |
281 | - | |
282 | - <!-- This is an example of using the KeywordTokenizer along | |
283 | - With various TokenFilterFactories to produce a sortable field | |
284 | - that does not include some properties of the source text | |
285 | - --> | |
286 | - | |
287 | - <!-- | |
288 | - <fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > | |
289 | - <analyzer> | |
290 | - <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
291 | - <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> | |
292 | - </analyzer> | |
293 | - </fieldtype> | |
294 | - --> | |
295 | - | |
296 | - <!-- lowercases the entire field value, keeping it as a single token. --> | |
297 | - <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> | |
298 | - <analyzer> | |
299 | - <tokenizer class="solr.KeywordTokenizerFactory"/> | |
300 | - <filter class="solr.LowerCaseFilterFactory" /> | |
301 | - </analyzer> | |
302 | - </fieldType> | |
303 | - | |
304 | - <!-- | |
305 | - Setup simple analysis for spell checking | |
306 | - --> | |
307 | - <fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" > | |
308 | - <analyzer> | |
309 | - <tokenizer class="solr.StandardTokenizerFactory"/> | |
310 | - <filter class="solr.LowerCaseFilterFactory"/> | |
311 | - <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> | |
312 | - </analyzer> | |
313 | - </fieldType> | |
314 | - | |
315 | - <!-- This is an example of using the KeywordTokenizer along | |
316 | - With various TokenFilterFactories to produce a sortable field | |
317 | - that does not include some properties of the source text | |
318 | - --> | |
319 | - <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true"> | |
320 | - <analyzer> | |
321 | - <!-- KeywordTokenizer does no actual tokenizing, so the entire | |
322 | - input string is preserved as a single token | |
323 | - --> | |
324 | - <tokenizer class="solr.KeywordTokenizerFactory"/> | |
325 | - <!-- The LowerCase TokenFilter does what you expect, which can be | |
326 | - when you want your sorting to be case insensitive | |
327 | - --> | |
328 | - <filter class="solr.LowerCaseFilterFactory" /> | |
329 | - <!-- The TrimFilter removes any leading or trailing whitespace --> | |
330 | - <filter class="solr.TrimFilterFactory" /> | |
331 | - <!-- The PatternReplaceFilter gives you the flexibility to use | |
332 | - Java Regular expression to replace any sequence of characters | |
333 | - matching a pattern with an arbitrary replacement string, | |
334 | - which may include back refrences to portions of the orriginal | |
335 | - string matched by the pattern. | |
336 | - | |
337 | - See the Java Regular Expression documentation for more | |
338 | - infomation on pattern and replacement string syntax. | |
339 | - | |
340 | - http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html | |
341 | - --> | |
342 | - <filter class="solr.PatternReplaceFilterFactory" | |
343 | - pattern="([^a-z])" replacement="" replace="all" | |
344 | - /> | |
345 | - </analyzer> | |
346 | - </fieldType> | |
347 | - | |
348 | - <!-- since fields of this type are by default not stored or indexed, any data added to | |
349 | - them will be ignored outright | |
350 | - --> | |
351 | - <fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" /> | |
352 | - | |
353 | - </types> | |
354 | - | |
355 | - | |
356 | - <fields> | |
357 | - <!-- Valid attributes for fields: | |
358 | - name: mandatory - the name for the field | |
359 | - type: mandatory - the name of a previously defined type from the <types> section | |
360 | - indexed: true if this field should be indexed (searchable or sortable) | |
361 | - stored: true if this field should be retrievable | |
362 | - compressed: [false] if this field should be stored using gzip compression | |
363 | - (this will only apply if the field type is compressable; among | |
364 | - the standard field types, only TextField and StrField are) | |
365 | - multiValued: true if this field may contain multiple values per document | |
366 | - omitNorms: (expert) set to true to omit the norms associated with | |
367 | - this field (this disables length normalization and index-time | |
368 | - boosting for the field, and saves some memory). Only full-text | |
369 | - fields or fields that need an index-time boost need norms. | |
370 | - termVectors: [false] set to true to store the term vector for a given field. | |
371 | - When using MoreLikeThis, fields used for similarity should be stored for | |
372 | - best performance. | |
373 | - --> | |
374 | - | |
375 | - <field name="admin_subscribed" type="boolean" indexed="false" stored="true" /> | |
376 | - <field name="description" type="text" indexed="true" stored="true" /> | |
377 | - <field name="group_id" type="integer" indexed="true" stored="true"/> | |
378 | - <field name="group_ranking" type="integer" indexed="true" stored="true"/> | |
379 | - <field name="has_file" type="integer" indexed="true" stored="true"/> | |
380 | - <field name="help_wanted" type="boolean" indexed="true" stored="true" /> | |
381 | - <field name="latest_file_date" type="date" indexed="true" stored="true" /> | |
382 | - <field name="license" type="string" indexed="true" stored="true" /> | |
383 | - <field name="license_other" type="string" indexed="true" stored="true" /> | |
384 | - <field name="name" type="text" indexed="true" stored="true"/> | |
385 | - <field name="num_developers" type="integer" indexed="true" stored="true"/> | |
386 | - <field name="num_downloads" type="integer" indexed="true" stored="true"/> | |
387 | - <field name="num_downloads_week" type="integer" indexed="true" stored="true"/> | |
388 | - <field name="num_services" type="integer" indexed="true" stored="true"/> | |
389 | - <field name="percentile" type="float" indexed="true" stored="true"/> | |
390 | - <field name="project_type" type="integer" indexed="true" stored="true" /> | |
391 | - <field name="project_doc_id" type="string" indexed="true" stored="true" /> | |
392 | - <field name="registration_date" type="date" indexed="true" stored="true" /> | |
393 | - <field name="screenshot_url" type="string" indexed="true" stored="true" /> | |
394 | - <field name="trove" type="text" indexed="true" stored="true" /> | |
395 | - <field name="unix_group_name" type="string" indexed="true" stored="true" /> | |
396 | - <field name="source" type="string" indexed="true" stored="true" /> | |
397 | - <field name="rating" type="float" indexed="true" stored="true" /> | |
398 | - <field name="review_count" type="integer" indexed="true" stored="true" /> | |
399 | - | |
400 | - <field name="id" type="string" indexed="true" stored="true" required="true" /> | |
401 | - <field name="sku" type="textTight" indexed="true" stored="true" omitNorms="true"/> | |
402 | - <field name="alphaNameSort" type="alphaOnlySort" indexed="true" stored="false"/> | |
403 | - <field name="manu" type="textgen" indexed="true" stored="true" omitNorms="true"/> | |
404 | - <field name="cat" type="text_ws" indexed="true" stored="true" multiValued="true" omitNorms="true" /> | |
405 | - <field name="features" type="text" indexed="true" stored="true" multiValued="true"/> | |
406 | - <field name="includes" type="text" indexed="true" stored="true" termVectors="true" termPositions="true" termOffsets="true" /> | |
407 | - | |
408 | - <field name="weight" type="float" indexed="true" stored="true"/> | |
409 | - <field name="price" type="float" indexed="true" stored="true"/> | |
410 | - <field name="popularity" type="int" indexed="true" stored="true" /> | |
411 | - <field name="inStock" type="boolean" indexed="true" stored="true" /> | |
412 | - | |
413 | - <!-- Common metadata fields, named specifically to match up with | |
414 | - SolrCell metadata when parsing rich documents such as Word, PDF. | |
415 | - Some fields are multiValued only because Tika currently may return | |
416 | - multiple values for them. | |
417 | - --> | |
418 | - <field name="title" type="text" indexed="true" stored="true" multiValued="true"/> | |
419 | - <field name="subject" type="text" indexed="true" stored="true"/> | |
420 | - <field name="comments" type="text" indexed="true" stored="true"/> | |
421 | - <field name="author" type="textgen" indexed="true" stored="true"/> | |
422 | - <field name="keywords" type="textgen" indexed="true" stored="true"/> | |
423 | - <field name="category" type="textgen" indexed="true" stored="true"/> | |
424 | - <field name="content_type" type="string" indexed="true" stored="true" multiValued="true"/> | |
425 | - <field name="last_modified" type="date" indexed="true" stored="true"/> | |
426 | - <field name="links" type="string" indexed="true" stored="true" multiValued="true"/> | |
427 | - | |
428 | - | |
429 | - <!-- catchall field, containing all other searchable text fields (implemented | |
430 | - via copyField further on in this schema --> | |
431 | - <field name="text" type="text" indexed="true" stored="false" multiValued="true"/> | |
432 | - | |
433 | - <!-- catchall text field that indexes tokens both normally and in reverse for efficient | |
434 | - leading wildcard queries. --> | |
435 | - <!-- | |
436 | - <field name="text_rev" type="text_rev" indexed="true" stored="false" multiValued="true"/> | |
437 | - --> | |
438 | - | |
439 | - <!-- non-tokenized version of manufacturer to make it easier to sort or group | |
440 | - results by manufacturer. copied from "manu" via copyField --> | |
441 | - <field name="manu_exact" type="string" indexed="true" stored="false"/> | |
442 | - | |
443 | - <!-- | |
444 | - <field name="payloads" type="payloads" indexed="true" stored="true"/> | |
445 | - --> | |
446 | - | |
447 | - <!-- Dynamic field definitions. If a field name is not found, dynamicFields | |
448 | - will be used if the name matches any of the patterns. | |
449 | - RESTRICTION: the glob-like pattern in the name attribute must have | |
450 | - a "*" only at the start or the end. | |
451 | - EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i) | |
452 | - Longer patterns will be matched first. if equal size patterns | |
453 | - both match, the first appearing in the schema will be used. | |
454 | - --> | |
455 | - <dynamicField name="*_i" type="int" indexed="true" stored="true"/> | |
456 | - <dynamicField name="*_s" type="string" indexed="true" stored="true"/> | |
457 | - <dynamicField name="*_l" type="long" indexed="true" stored="true"/> | |
458 | - <dynamicField name="*_t" type="text" indexed="true" stored="true"/> | |
459 | - <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/> | |
460 | - <dynamicField name="*_f" type="float" indexed="true" stored="true"/> | |
461 | - <dynamicField name="*_d" type="double" indexed="true" stored="true"/> | |
462 | - <dynamicField name="*_dt" type="date" indexed="true" stored="true"/> | |
463 | - | |
464 | - <!-- some trie-coded dynamic fields for faster range queries --> | |
465 | - <!-- | |
466 | - <dynamicField name="*_ti" type="tint" indexed="true" stored="true"/> | |
467 | - <dynamicField name="*_tl" type="tlong" indexed="true" stored="true"/> | |
468 | - <dynamicField name="*_tf" type="tfloat" indexed="true" stored="true"/> | |
469 | - <dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/> | |
470 | - <dynamicField name="*_tdt" type="tdate" indexed="true" stored="true"/> | |
471 | - | |
472 | - <dynamicField name="*_pi" type="pint" indexed="true" stored="true"/> | |
473 | - | |
474 | - <dynamicField name="ignored_*" type="ignored" multiValued="true"/> | |
475 | - <dynamicField name="attr_*" type="textgen" indexed="true" stored="true" multiValued="true"/> | |
476 | - | |
477 | - <dynamicField name="random_*" type="random" /> | |
478 | - --> | |
479 | - | |
480 | - </fields> | |
481 | - | |
482 | - <!-- Field to use to determine and enforce document uniqueness. | |
483 | - Unless this field is marked with required="false", it will be a required field | |
484 | - --> | |
485 | - <uniqueKey>id</uniqueKey> | |
486 | - <!-- field for the QueryParser to use when an explicit fieldname is absent --> | |
487 | - <defaultSearchField>text</defaultSearchField> | |
488 | - | |
489 | - <!-- SolrQueryParser configuration: defaultOperator="AND|OR" --> | |
490 | - <solrQueryParser defaultOperator="OR"/> | |
491 | - | |
492 | - <!-- copyField commands copy one field to another at the time a document | |
493 | - is added to the index. It's used either to index the same field differently, | |
494 | - or to add multiple fields to the same field for easier/faster searching. --> | |
495 | - | |
496 | - <copyField source="cat" dest="text"/> | |
497 | - <copyField source="name" dest="text"/> | |
498 | - <copyField source="manu" dest="text"/> | |
499 | - <copyField source="features" dest="text"/> | |
500 | - <copyField source="includes" dest="text"/> | |
501 | - <copyField source="manu" dest="manu_exact"/> | |
502 | - | |
503 | -</schema> |