sunspot 0.10.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/History.txt +30 -0
  2. data/README.rdoc +59 -29
  3. data/Rakefile +2 -0
  4. data/TODO +9 -19
  5. data/VERSION.yml +2 -3
  6. data/bin/sunspot-installer +19 -0
  7. data/bin/sunspot-solr +28 -53
  8. data/installer/config/schema.yml +71 -0
  9. data/lib/sunspot/configuration.rb +0 -10
  10. data/lib/sunspot/dsl/field_query.rb +123 -7
  11. data/lib/sunspot/dsl/fields.rb +17 -4
  12. data/lib/sunspot/dsl/query.rb +11 -3
  13. data/lib/sunspot/dsl/scope.rb +6 -2
  14. data/lib/sunspot/field.rb +4 -7
  15. data/lib/sunspot/field_factory.rb +8 -5
  16. data/lib/sunspot/indexer.rb +22 -20
  17. data/lib/sunspot/installer/library_installer.rb +45 -0
  18. data/lib/sunspot/installer/schema_builder.rb +219 -0
  19. data/lib/sunspot/installer/solrconfig_updater.rb +90 -0
  20. data/lib/sunspot/installer/task_helper.rb +18 -0
  21. data/lib/sunspot/installer.rb +31 -0
  22. data/lib/sunspot/query/abstract_field_facet.rb +5 -1
  23. data/lib/sunspot/query/connective.rb +3 -1
  24. data/lib/sunspot/query/field_facet.rb +33 -1
  25. data/lib/sunspot/query/filter.rb +38 -0
  26. data/lib/sunspot/query/local.rb +10 -11
  27. data/lib/sunspot/query/query.rb +5 -12
  28. data/lib/sunspot/query/restriction.rb +2 -1
  29. data/lib/sunspot/query/scope.rb +1 -1
  30. data/lib/sunspot/query.rb +3 -3
  31. data/lib/sunspot/schema.rb +5 -1
  32. data/lib/sunspot/search/field_facet.rb +59 -15
  33. data/lib/sunspot/search/hit.rb +21 -10
  34. data/lib/sunspot/search/query_facet.rb +2 -2
  35. data/lib/sunspot/search.rb +86 -33
  36. data/lib/sunspot/server.rb +148 -0
  37. data/lib/sunspot/session.rb +39 -51
  38. data/lib/sunspot/session_proxy/abstract_session_proxy.rb +29 -0
  39. data/lib/sunspot/session_proxy/class_sharding_session_proxy.rb +66 -0
  40. data/lib/sunspot/session_proxy/id_sharding_session_proxy.rb +89 -0
  41. data/lib/sunspot/session_proxy/master_slave_session_proxy.rb +43 -0
  42. data/lib/sunspot/session_proxy/sharding_session_proxy.rb +206 -0
  43. data/lib/sunspot/session_proxy/thread_local_session_proxy.rb +30 -0
  44. data/lib/sunspot/session_proxy.rb +71 -0
  45. data/lib/sunspot/setup.rb +24 -10
  46. data/lib/sunspot/type.rb +163 -101
  47. data/lib/sunspot/util.rb +44 -2
  48. data/lib/sunspot/version.rb +3 -0
  49. data/lib/sunspot.rb +50 -17
  50. data/solr/etc/jetty.xml +4 -2
  51. data/solr/solr/conf/admin-extra.html +31 -0
  52. data/solr/solr/conf/mapping-ISOLatin1Accent.txt +246 -0
  53. data/solr/solr/conf/schema.xml +212 -50
  54. data/solr/solr/conf/scripts.conf +24 -0
  55. data/solr/solr/conf/solrconfig.xml +473 -266
  56. data/solr/solr/conf/spellings.txt +2 -0
  57. data/solr/solr/conf/stopwords.txt +1 -0
  58. data/solr/solr/lib/lucene-spatial-2.9.1.jar +0 -0
  59. data/solr/solr/lib/solr-spatial-light-0.0.3.jar +0 -0
  60. data/solr/webapps/solr.war +0 -0
  61. data/spec/api/binding_spec.rb +38 -0
  62. data/spec/api/indexer/attributes_spec.rb +37 -4
  63. data/spec/api/indexer/dynamic_fields_spec.rb +10 -1
  64. data/spec/api/indexer/removal_spec.rb +8 -1
  65. data/spec/api/indexer_spec.rb +10 -0
  66. data/spec/api/query/dsl_spec.rb +6 -0
  67. data/spec/api/query/dynamic_fields_spec.rb +9 -9
  68. data/spec/api/query/facet_local_params_spec.rb +103 -0
  69. data/spec/api/query/local_spec.rb +13 -37
  70. data/spec/api/query/ordering_pagination_spec.rb +0 -6
  71. data/spec/api/search/dynamic_fields_spec.rb +3 -3
  72. data/spec/api/search/faceting_spec.rb +113 -10
  73. data/spec/api/search/hits_spec.rb +49 -0
  74. data/spec/api/search/results_spec.rb +8 -1
  75. data/spec/api/server_spec.rb +85 -0
  76. data/spec/api/session_proxy/class_sharding_session_proxy_spec.rb +85 -0
  77. data/spec/api/session_proxy/id_sharding_session_proxy_spec.rb +30 -0
  78. data/spec/api/session_proxy/master_slave_session_proxy_spec.rb +41 -0
  79. data/spec/api/session_proxy/sharding_session_proxy_spec.rb +77 -0
  80. data/spec/api/session_proxy/spec_helper.rb +9 -0
  81. data/spec/api/session_proxy/thread_local_session_proxy_spec.rb +33 -0
  82. data/spec/ext.rb +11 -0
  83. data/spec/helpers/search_helper.rb +6 -8
  84. data/spec/integration/faceting_spec.rb +46 -4
  85. data/spec/integration/indexing_spec.rb +27 -1
  86. data/spec/integration/local_search_spec.rb +25 -7
  87. data/spec/integration/scoped_search_spec.rb +48 -36
  88. data/spec/mocks/comment.rb +7 -5
  89. data/spec/mocks/connection.rb +14 -13
  90. data/spec/mocks/mock_class_sharding_session_proxy.rb +24 -0
  91. data/spec/mocks/mock_record.rb +7 -3
  92. data/spec/mocks/mock_sharding_session_proxy.rb +15 -0
  93. data/spec/mocks/photo.rb +4 -3
  94. data/spec/mocks/post.rb +1 -1
  95. data/spec/spec_helper.rb +2 -1
  96. data/tasks/gemspec.rake +26 -36
  97. data/tasks/rdoc.rake +9 -4
  98. metadata +203 -203
  99. data/bin/sunspot-configure-solr +0 -40
  100. data/solr/solr/lib/geoapi-nogenerics-2.1-M2.jar +0 -0
  101. data/solr/solr/lib/gt2-referencing-2.3.1.jar +0 -0
  102. data/solr/solr/lib/jsr108-0.01.jar +0 -0
  103. data/solr/solr/lib/locallucene.jar +0 -0
  104. data/solr/solr/lib/localsolr.jar +0 -0
  105. data/templates/schema.xml.erb +0 -36
@@ -0,0 +1,246 @@
1
+ # The ASF licenses this file to You under the Apache License, Version 2.0
2
+ # (the "License"); you may not use this file except in compliance with
3
+ # the License. You may obtain a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS,
9
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ # See the License for the specific language governing permissions and
11
+ # limitations under the License.
12
+
13
+ # Syntax:
14
+ # "source" => "target"
15
+ # "source".length() > 0 (source cannot be empty.)
16
+ # "target".length() >= 0 (target can be empty.)
17
+
18
+ # example:
19
+ # "À" => "A"
20
+ # "\u00C0" => "A"
21
+ # "\u00C0" => "\u0041"
22
+ # "ß" => "ss"
23
+ # "\t" => " "
24
+ # "\n" => ""
25
+
26
+ # À => A
27
+ "\u00C0" => "A"
28
+
29
+ # Á => A
30
+ "\u00C1" => "A"
31
+
32
+ # Â => A
33
+ "\u00C2" => "A"
34
+
35
+ # Ã => A
36
+ "\u00C3" => "A"
37
+
38
+ # Ä => A
39
+ "\u00C4" => "A"
40
+
41
+ # Å => A
42
+ "\u00C5" => "A"
43
+
44
+ # Æ => AE
45
+ "\u00C6" => "AE"
46
+
47
+ # Ç => C
48
+ "\u00C7" => "C"
49
+
50
+ # È => E
51
+ "\u00C8" => "E"
52
+
53
+ # É => E
54
+ "\u00C9" => "E"
55
+
56
+ # Ê => E
57
+ "\u00CA" => "E"
58
+
59
+ # Ë => E
60
+ "\u00CB" => "E"
61
+
62
+ # Ì => I
63
+ "\u00CC" => "I"
64
+
65
+ # Í => I
66
+ "\u00CD" => "I"
67
+
68
+ # Î => I
69
+ "\u00CE" => "I"
70
+
71
+ # Ï => I
72
+ "\u00CF" => "I"
73
+
74
+ # IJ => IJ
75
+ "\u0132" => "IJ"
76
+
77
+ # Ð => D
78
+ "\u00D0" => "D"
79
+
80
+ # Ñ => N
81
+ "\u00D1" => "N"
82
+
83
+ # Ò => O
84
+ "\u00D2" => "O"
85
+
86
+ # Ó => O
87
+ "\u00D3" => "O"
88
+
89
+ # Ô => O
90
+ "\u00D4" => "O"
91
+
92
+ # Õ => O
93
+ "\u00D5" => "O"
94
+
95
+ # Ö => O
96
+ "\u00D6" => "O"
97
+
98
+ # Ø => O
99
+ "\u00D8" => "O"
100
+
101
+ # Œ => OE
102
+ "\u0152" => "OE"
103
+
104
+ # Þ
105
+ "\u00DE" => "TH"
106
+
107
+ # Ù => U
108
+ "\u00D9" => "U"
109
+
110
+ # Ú => U
111
+ "\u00DA" => "U"
112
+
113
+ # Û => U
114
+ "\u00DB" => "U"
115
+
116
+ # Ü => U
117
+ "\u00DC" => "U"
118
+
119
+ # Ý => Y
120
+ "\u00DD" => "Y"
121
+
122
+ # Ÿ => Y
123
+ "\u0178" => "Y"
124
+
125
+ # à => a
126
+ "\u00E0" => "a"
127
+
128
+ # á => a
129
+ "\u00E1" => "a"
130
+
131
+ # â => a
132
+ "\u00E2" => "a"
133
+
134
+ # ã => a
135
+ "\u00E3" => "a"
136
+
137
+ # ä => a
138
+ "\u00E4" => "a"
139
+
140
+ # å => a
141
+ "\u00E5" => "a"
142
+
143
+ # æ => ae
144
+ "\u00E6" => "ae"
145
+
146
+ # ç => c
147
+ "\u00E7" => "c"
148
+
149
+ # è => e
150
+ "\u00E8" => "e"
151
+
152
+ # é => e
153
+ "\u00E9" => "e"
154
+
155
+ # ê => e
156
+ "\u00EA" => "e"
157
+
158
+ # ë => e
159
+ "\u00EB" => "e"
160
+
161
+ # ì => i
162
+ "\u00EC" => "i"
163
+
164
+ # í => i
165
+ "\u00ED" => "i"
166
+
167
+ # î => i
168
+ "\u00EE" => "i"
169
+
170
+ # ï => i
171
+ "\u00EF" => "i"
172
+
173
+ # ij => ij
174
+ "\u0133" => "ij"
175
+
176
+ # ð => d
177
+ "\u00F0" => "d"
178
+
179
+ # ñ => n
180
+ "\u00F1" => "n"
181
+
182
+ # ò => o
183
+ "\u00F2" => "o"
184
+
185
+ # ó => o
186
+ "\u00F3" => "o"
187
+
188
+ # ô => o
189
+ "\u00F4" => "o"
190
+
191
+ # õ => o
192
+ "\u00F5" => "o"
193
+
194
+ # ö => o
195
+ "\u00F6" => "o"
196
+
197
+ # ø => o
198
+ "\u00F8" => "o"
199
+
200
+ # œ => oe
201
+ "\u0153" => "oe"
202
+
203
+ # ß => ss
204
+ "\u00DF" => "ss"
205
+
206
+ # þ => th
207
+ "\u00FE" => "th"
208
+
209
+ # ù => u
210
+ "\u00F9" => "u"
211
+
212
+ # ú => u
213
+ "\u00FA" => "u"
214
+
215
+ # û => u
216
+ "\u00FB" => "u"
217
+
218
+ # ü => u
219
+ "\u00FC" => "u"
220
+
221
+ # ý => y
222
+ "\u00FD" => "y"
223
+
224
+ # ÿ => y
225
+ "\u00FF" => "y"
226
+
227
+ # ff => ff
228
+ "\uFB00" => "ff"
229
+
230
+ # fi => fi
231
+ "\uFB01" => "fi"
232
+
233
+ # fl => fl
234
+ "\uFB02" => "fl"
235
+
236
+ # ffi => ffi
237
+ "\uFB03" => "ffi"
238
+
239
+ # ffl => ffl
240
+ "\uFB04" => "ffl"
241
+
242
+ # ſt => ft
243
+ "\uFB05" => "ft"
244
+
245
+ # st => st
246
+ "\uFB06" => "st"
@@ -1,64 +1,226 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <schema version="0.9" name="sunspot">
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
+ This is the Solr schema file. This file should be named "schema.xml" and
20
+ should be in the conf directory under the solr home
21
+ (i.e. ./solr/conf/schema.xml by default)
22
+ or located where the classloader for the Solr webapp can find it.
23
+
24
+ This example schema is the recommended starting point for users.
25
+ It should be kept correct and concise, usable out-of-the-box.
26
+
27
+ For more information, on how to customize this file, please see
28
+ http://wiki.apache.org/solr/SchemaXml
29
+
30
+ PERFORMANCE NOTE: this schema includes many optional features and should not
31
+ be used for benchmarking. To improve performance one could
32
+ - set stored="false" for all fields possible (esp large fields) when you
33
+ only need to search on the field but don't need to return the original
34
+ value.
35
+ - set indexed="false" if you don't need to search on the field, but only
36
+ return the field as a result of searching on other indexed fields.
37
+ - remove all unneeded copyField statements
38
+ - for best index size and searching performance, set "index" to false
39
+ for all general text fields, use copyField to copy them to the
40
+ catchall "text" field, and use that for searching.
41
+ - For maximum indexing performance, use the StreamingUpdateSolrServer
42
+ java client.
43
+ - Remember to run the JVM in server mode, and use a higher logging level
44
+ that avoids logging every request
45
+ -->
46
+ <schema name="sunspot" version="1.0">
3
47
  <types>
4
- <fieldtype class="solr.TextField" positionIncrementGap="100" name="text">
48
+ <!-- field type definitions. The "name" attribute is
49
+ just a label to be used by field definitions. The "class"
50
+ attribute and any other attributes determine the real
51
+ behavior of the fieldType.
52
+ Class names starting with "solr" refer to java classes in the
53
+ org.apache.solr.analysis package.
54
+ -->
55
+ <!-- *** This fieldType is used by Sunspot! *** -->
56
+ <fieldType name="string" class="solr.StrField" omitNorms="true"/>
57
+ <!-- *** This fieldType is used by Sunspot! *** -->
58
+ <fieldType name="tdouble" class="solr.TrieDoubleField" omitNorms="true"/>
59
+ <!-- *** This fieldType is used by Sunspot! *** -->
60
+ <fieldType name="rand" class="solr.RandomSortField" omitNorms="true"/>
61
+ <!-- *** This fieldType is used by Sunspot! *** -->
62
+ <fieldType name="text" class="solr.TextField" omitNorms="false">
5
63
  <analyzer>
6
64
  <tokenizer class="solr.StandardTokenizerFactory"/>
7
65
  <filter class="solr.StandardFilterFactory"/>
8
66
  <filter class="solr.LowerCaseFilterFactory"/>
9
67
  </analyzer>
10
- </fieldtype>
11
- <fieldtype class="solr.RandomSortField" name="rand"/>
12
- <fieldtype name="boolean" class="solr.BoolField" omitNorms="true"/>
13
- <fieldtype name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
14
- <fieldtype name="date" class="solr.DateField" omitNorms="true"/>
15
- <fieldtype name="sint" class="solr.SortableIntField" omitNorms="true"/>
16
- <fieldtype name="string" class="solr.StrField" omitNorms="true"/>
17
- <fieldtype name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
18
- <fieldtype name="slong" class="solr.SortableLongField" omitNorms="true"/>
68
+ </fieldType>
69
+ <!-- *** This fieldType is used by Sunspot! *** -->
70
+ <fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
71
+ <!-- *** This fieldType is used by Sunspot! *** -->
72
+ <fieldType name="date" class="solr.DateField" omitNorms="true"/>
73
+ <!-- *** This fieldType is used by Sunspot! *** -->
74
+ <fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
75
+ <!-- *** This fieldType is used by Sunspot! *** -->
76
+ <fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
77
+ <!-- *** This fieldType is used by Sunspot! *** -->
78
+ <fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
79
+ <!-- *** This fieldType is used by Sunspot! *** -->
80
+ <fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
81
+ <!-- *** This fieldType is used by Sunspot! *** -->
82
+ <fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
83
+ <!-- *** This fieldType is used by Sunspot! *** -->
84
+ <fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
85
+ <!-- *** This fieldType is used by Sunspot! *** -->
86
+ <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
19
87
  </types>
20
88
  <fields>
21
- <field name="id" type="string" indexed="true" stored="true" multiValued="false" />
22
- <field name="type" type="string" indexed="true" stored="false" multiValued="true" />
23
- <field name="class_name" type="string" indexed="true" stored="false" multiValued="false" />
24
- <field name="text" type="text" indexed="true" stored="false" multiValued="true" />
25
- <field name="lat" type="sdouble" indexed="true" stored="true" multiValued="false" />
26
- <field name="long" type="sdouble" indexed="true" stored="true" multiValued="false" />
27
- <dynamicField name="*_text" type="text" indexed="true" stored="false" multiValued="true" />
28
- <dynamicField name="*_texts" type="text" indexed="true" stored="true" multiValued="true" />
29
- <dynamicField name="random_*" type="rand" indexed="true" stored="false" multiValued="false" />
30
- <dynamicField name="_local*" type="sdouble" indexed="true" stored="false" multiValued="false" />
31
- <dynamicField name="*_b" type="boolean" indexed="true" stored="false" multiValued="false" />
32
- <dynamicField name="*_f" type="sfloat" indexed="true" stored="false" multiValued="false" />
33
- <dynamicField name="*_d" type="date" indexed="true" stored="false" multiValued="false" />
34
- <dynamicField name="*_i" type="sint" indexed="true" stored="false" multiValued="false" />
35
- <dynamicField name="*_s" type="string" indexed="true" stored="false" multiValued="false" />
36
- <dynamicField name="*_e" type="sdouble" indexed="true" stored="false" multiValued="false" />
37
- <dynamicField name="*_l" type="slong" indexed="true" stored="false" multiValued="false" />
38
- <dynamicField name="*_bm" type="boolean" indexed="true" stored="false" multiValued="true" />
39
- <dynamicField name="*_fm" type="sfloat" indexed="true" stored="false" multiValued="true" />
40
- <dynamicField name="*_dm" type="date" indexed="true" stored="false" multiValued="true" />
41
- <dynamicField name="*_im" type="sint" indexed="true" stored="false" multiValued="true" />
42
- <dynamicField name="*_sm" type="string" indexed="true" stored="false" multiValued="true" />
43
- <dynamicField name="*_em" type="sdouble" indexed="true" stored="false" multiValued="true" />
44
- <dynamicField name="*_lm" type="slong" indexed="true" stored="false" multiValued="true" />
45
- <dynamicField name="*_bs" type="boolean" indexed="true" stored="true" multiValued="false" />
46
- <dynamicField name="*_fs" type="sfloat" indexed="true" stored="true" multiValued="false" />
47
- <dynamicField name="*_ds" type="date" indexed="true" stored="true" multiValued="false" />
48
- <dynamicField name="*_is" type="sint" indexed="true" stored="true" multiValued="false" />
49
- <dynamicField name="*_ss" type="string" indexed="true" stored="true" multiValued="false" />
50
- <dynamicField name="*_es" type="sdouble" indexed="true" stored="true" multiValued="false" />
51
- <dynamicField name="*_ls" type="slong" indexed="true" stored="true" multiValued="false" />
52
- <dynamicField name="*_bms" type="boolean" indexed="true" stored="true" multiValued="true" />
53
- <dynamicField name="*_fms" type="sfloat" indexed="true" stored="true" multiValued="true" />
54
- <dynamicField name="*_dms" type="date" indexed="true" stored="true" multiValued="true" />
55
- <dynamicField name="*_ims" type="sint" indexed="true" stored="true" multiValued="true" />
56
- <dynamicField name="*_sms" type="string" indexed="true" stored="true" multiValued="true" />
57
- <dynamicField name="*_ems" type="sdouble" indexed="true" stored="true" multiValued="true" />
58
- <dynamicField name="*_lms" type="slong" indexed="true" stored="true" multiValued="true" />
89
+ <!-- Valid attributes for fields:
90
+ name: mandatory - the name for the field
91
+ type: mandatory - the name of a previously defined type from the
92
+ <types> section
93
+ indexed: true if this field should be indexed (searchable or sortable)
94
+ stored: true if this field should be retrievable
95
+ compressed: [false] if this field should be stored using gzip compression
96
+ (this will only apply if the field type is compressable; among
97
+ the standard field types, only TextField and StrField are)
98
+ multiValued: true if this field may contain multiple values per document
99
+ omitNorms: (expert) set to true to omit the norms associated with
100
+ this field (this disables length normalization and index-time
101
+ boosting for the field, and saves some memory). Only full-text
102
+ fields or fields that need an index-time boost need norms.
103
+ termVectors: [false] set to true to store the term vector for a
104
+ given field.
105
+ When using MoreLikeThis, fields used for similarity should be
106
+ stored for best performance.
107
+ termPositions: Store position information with the term vector.
108
+ This will increase storage costs.
109
+ termOffsets: Store offset information with the term vector. This
110
+ will increase storage costs.
111
+ default: a value that should be used if no value is specified
112
+ when adding a document.
113
+ -->
114
+ <!-- *** This field is used by Sunspot! *** -->
115
+ <field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
116
+ <!-- *** This field is used by Sunspot! *** -->
117
+ <field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
118
+ <!-- *** This field is used by Sunspot! *** -->
119
+ <field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
120
+ <!-- *** This field is used by Sunspot! *** -->
121
+ <field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
122
+ <!-- *** This field is used by Sunspot! *** -->
123
+ <field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
124
+ <!-- *** This field is used by Sunspot! *** -->
125
+ <field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
126
+ <!-- *** This dynamicField is used by Sunspot! *** -->
127
+ <dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
128
+ <!-- *** This dynamicField is used by Sunspot! *** -->
129
+ <dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
130
+ <!-- *** This dynamicField is used by Sunspot! *** -->
131
+ <dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
132
+ <!-- *** This dynamicField is used by Sunspot! *** -->
133
+ <dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
134
+ <!-- *** This dynamicField is used by Sunspot! *** -->
135
+ <dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
136
+ <!-- *** This dynamicField is used by Sunspot! *** -->
137
+ <dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
138
+ <!-- *** This dynamicField is used by Sunspot! *** -->
139
+ <dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
140
+ <!-- *** This dynamicField is used by Sunspot! *** -->
141
+ <dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
142
+ <!-- *** This dynamicField is used by Sunspot! *** -->
143
+ <dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
144
+ <!-- *** This dynamicField is used by Sunspot! *** -->
145
+ <dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
146
+ <!-- *** This dynamicField is used by Sunspot! *** -->
147
+ <dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
148
+ <!-- *** This dynamicField is used by Sunspot! *** -->
149
+ <dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
150
+ <!-- *** This dynamicField is used by Sunspot! *** -->
151
+ <dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
152
+ <!-- *** This dynamicField is used by Sunspot! *** -->
153
+ <dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
154
+ <!-- *** This dynamicField is used by Sunspot! *** -->
155
+ <dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
156
+ <!-- *** This dynamicField is used by Sunspot! *** -->
157
+ <dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
158
+ <!-- *** This dynamicField is used by Sunspot! *** -->
159
+ <dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
160
+ <!-- *** This dynamicField is used by Sunspot! *** -->
161
+ <dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
162
+ <!-- *** This dynamicField is used by Sunspot! *** -->
163
+ <dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
164
+ <!-- *** This dynamicField is used by Sunspot! *** -->
165
+ <dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
166
+ <!-- *** This dynamicField is used by Sunspot! *** -->
167
+ <dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
168
+ <!-- *** This dynamicField is used by Sunspot! *** -->
169
+ <dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
170
+ <!-- *** This dynamicField is used by Sunspot! *** -->
171
+ <dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
172
+ <!-- *** This dynamicField is used by Sunspot! *** -->
173
+ <dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
174
+ <!-- *** This dynamicField is used by Sunspot! *** -->
175
+ <dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
176
+ <!-- *** This dynamicField is used by Sunspot! *** -->
177
+ <dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
178
+ <!-- *** This dynamicField is used by Sunspot! *** -->
179
+ <dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
180
+ <!-- *** This dynamicField is used by Sunspot! *** -->
181
+ <dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
182
+ <!-- *** This dynamicField is used by Sunspot! *** -->
183
+ <dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
184
+ <!-- *** This dynamicField is used by Sunspot! *** -->
185
+ <dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
186
+ <!-- *** This dynamicField is used by Sunspot! *** -->
187
+ <dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
188
+ <!-- *** This dynamicField is used by Sunspot! *** -->
189
+ <dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
190
+ <!-- *** This dynamicField is used by Sunspot! *** -->
191
+ <dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
192
+ <!-- *** This dynamicField is used by Sunspot! *** -->
193
+ <dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
194
+ <!-- *** This dynamicField is used by Sunspot! *** -->
195
+ <dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
196
+ <!-- *** This dynamicField is used by Sunspot! *** -->
197
+ <dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
198
+ <!-- *** This dynamicField is used by Sunspot! *** -->
199
+ <dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
200
+ <!-- *** This dynamicField is used by Sunspot! *** -->
201
+ <dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
202
+ <!-- *** This dynamicField is used by Sunspot! *** -->
203
+ <dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
204
+ <!-- *** This dynamicField is used by Sunspot! *** -->
205
+ <dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
206
+ <!-- *** This dynamicField is used by Sunspot! *** -->
207
+ <dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
208
+ <!-- *** This dynamicField is used by Sunspot! *** -->
209
+ <dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
210
+ <!-- *** This dynamicField is used by Sunspot! *** -->
211
+ <dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
212
+ <!-- *** This dynamicField is used by Sunspot! *** -->
213
+ <dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
59
214
  </fields>
215
+ <!-- Field to use to determine and enforce document uniqueness.
216
+ Unless this field is marked with required="false", it will be a required field
217
+ -->
60
218
  <uniqueKey>id</uniqueKey>
219
+ <!-- field for the QueryParser to use when an explicit fieldname is absent -->
61
220
  <defaultSearchField>text</defaultSearchField>
221
+ <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
62
222
  <solrQueryParser defaultOperator="AND"/>
63
- <copyField dest="text" source="*_text"/>
223
+ <!-- copyField commands copy one field to another at the time a document
224
+ is added to the index. It's used either to index the same field differently,
225
+ or to add multiple fields to the same field for easier/faster searching. -->
64
226
  </schema>
@@ -0,0 +1,24 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ user=
17
+ solr_hostname=localhost
18
+ solr_port=8983
19
+ rsyncd_port=18983
20
+ data_dir=
21
+ webapp_name=solr
22
+ master_host=
23
+ master_data_dir=
24
+ master_status_dir=