solr_makr 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.pryrc +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +19 -0
- data/Rakefile +2 -0
- data/bin/solr-makr +7 -0
- data/lib/files/schema.xml +255 -0
- data/lib/files/solrconfig.xml +667 -0
- data/lib/solr_makr.rb +42 -0
- data/lib/solr_makr/application.rb +49 -0
- data/lib/solr_makr/commands.rb +5 -0
- data/lib/solr_makr/commands/create_core.rb +21 -0
- data/lib/solr_makr/commands/destroy_core.rb +17 -0
- data/lib/solr_makr/commands/list_cores.rb +17 -0
- data/lib/solr_makr/commands/shared.rb +82 -0
- data/lib/solr_makr/core.rb +92 -0
- data/lib/solr_makr/core_status.rb +56 -0
- data/lib/solr_makr/solr_configuration.rb +78 -0
- data/lib/solr_makr/solr_request.rb +23 -0
- data/lib/solr_makr/version.rb +3 -0
- data/solr_makr.gemspec +30 -0
- metadata +200 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aa8c04452b0fe18809c3a2699656cb4588b8db17
|
4
|
+
data.tar.gz: bdbb2b4afdb39ebdcd71e614a975538855c0be19
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8386011c813b1d7a06b9ea3919878d9404aae3a46ce547b3022e9a261a31023c14e9c82bee0e1e1350331b369f2612df5417461aa7a1742bd94b26bca584d8f1
|
7
|
+
data.tar.gz: c6fc54dd2cdc27acfd91c35fe3a1d2d863d318d645af9dadd089d460cbb1552cbbfcfa6128cca0aa0d8815d54a7792b3ac4f6e6e38b7bdc24cb2b65b6162c5a8
|
data/.gitignore
ADDED
data/.pryrc
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Alexa Grey
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# SolrMakr
|
2
|
+
|
3
|
+
Create and destroy solr cores programmatically.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install solr_makr
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
TODO: Write usage instructions here
|
12
|
+
|
13
|
+
## Contributing
|
14
|
+
|
15
|
+
1. Fork it ( https://github.com/scryptmouse/apple_solr/fork )
|
16
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
17
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
18
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
19
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/solr-makr
ADDED
@@ -0,0 +1,255 @@
|
|
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
|
+
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">
|
47
|
+
<types>
|
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">
|
63
|
+
<analyzer>
|
64
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
65
|
+
<filter class="solr.StandardFilterFactory"/>
|
66
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
67
|
+
<filter class="solr.PorterStemFilterFactory"/>
|
68
|
+
</analyzer>
|
69
|
+
</fieldType>
|
70
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
71
|
+
<fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
|
72
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
73
|
+
<fieldType name="date" class="solr.DateField" omitNorms="true"/>
|
74
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
75
|
+
<fieldType name="sdouble" class="solr.SortableDoubleField" omitNorms="true"/>
|
76
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
77
|
+
<fieldType name="sfloat" class="solr.SortableFloatField" omitNorms="true"/>
|
78
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
79
|
+
<fieldType name="sint" class="solr.SortableIntField" omitNorms="true"/>
|
80
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
81
|
+
<fieldType name="slong" class="solr.SortableLongField" omitNorms="true"/>
|
82
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
83
|
+
<fieldType name="tint" class="solr.TrieIntField" omitNorms="true"/>
|
84
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
85
|
+
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
86
|
+
<!-- *** This fieldType is used by Sunspot! *** -->
|
87
|
+
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
|
88
|
+
|
89
|
+
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
90
|
+
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
91
|
+
</types>
|
92
|
+
<fields>
|
93
|
+
<!-- Valid attributes for fields:
|
94
|
+
name: mandatory - the name for the field
|
95
|
+
type: mandatory - the name of a previously defined type from the
|
96
|
+
<types> section
|
97
|
+
indexed: true if this field should be indexed (searchable or sortable)
|
98
|
+
stored: true if this field should be retrievable
|
99
|
+
compressed: [false] if this field should be stored using gzip compression
|
100
|
+
(this will only apply if the field type is compressable; among
|
101
|
+
the standard field types, only TextField and StrField are)
|
102
|
+
multiValued: true if this field may contain multiple values per document
|
103
|
+
omitNorms: (expert) set to true to omit the norms associated with
|
104
|
+
this field (this disables length normalization and index-time
|
105
|
+
boosting for the field, and saves some memory). Only full-text
|
106
|
+
fields or fields that need an index-time boost need norms.
|
107
|
+
termVectors: [false] set to true to store the term vector for a
|
108
|
+
given field.
|
109
|
+
When using MoreLikeThis, fields used for similarity should be
|
110
|
+
stored for best performance.
|
111
|
+
termPositions: Store position information with the term vector.
|
112
|
+
This will increase storage costs.
|
113
|
+
termOffsets: Store offset information with the term vector. This
|
114
|
+
will increase storage costs.
|
115
|
+
default: a value that should be used if no value is specified
|
116
|
+
when adding a document.
|
117
|
+
-->
|
118
|
+
<!-- *** This field is used by Sunspot! *** -->
|
119
|
+
<field name="id" stored="true" type="string" multiValued="false" indexed="true"/>
|
120
|
+
<!-- *** This field is used by Sunspot! *** -->
|
121
|
+
<field name="type" stored="false" type="string" multiValued="true" indexed="true"/>
|
122
|
+
<!-- *** This field is used by Sunspot! *** -->
|
123
|
+
<field name="class_name" stored="false" type="string" multiValued="false" indexed="true"/>
|
124
|
+
<!-- *** This field is used by Sunspot! *** -->
|
125
|
+
<field name="text" stored="false" type="string" multiValued="true" indexed="true"/>
|
126
|
+
<!-- *** This field is used by Sunspot! *** -->
|
127
|
+
<field name="lat" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
128
|
+
<!-- *** This field is used by Sunspot! *** -->
|
129
|
+
<field name="lng" stored="true" type="tdouble" multiValued="false" indexed="true"/>
|
130
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
131
|
+
<dynamicField name="random_*" stored="false" type="rand" multiValued="false" indexed="true"/>
|
132
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
133
|
+
<dynamicField name="_local*" stored="false" type="tdouble" multiValued="false" indexed="true"/>
|
134
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
135
|
+
<dynamicField name="*_text" stored="false" type="text" multiValued="true" indexed="true"/>
|
136
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
137
|
+
<dynamicField name="*_texts" stored="true" type="text" multiValued="true" indexed="true"/>
|
138
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
139
|
+
<dynamicField name="*_b" stored="false" type="boolean" multiValued="false" indexed="true"/>
|
140
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
141
|
+
<dynamicField name="*_bm" stored="false" type="boolean" multiValued="true" indexed="true"/>
|
142
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
143
|
+
<dynamicField name="*_bs" stored="true" type="boolean" multiValued="false" indexed="true"/>
|
144
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
145
|
+
<dynamicField name="*_bms" stored="true" type="boolean" multiValued="true" indexed="true"/>
|
146
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
147
|
+
<dynamicField name="*_d" stored="false" type="date" multiValued="false" indexed="true"/>
|
148
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
149
|
+
<dynamicField name="*_dm" stored="false" type="date" multiValued="true" indexed="true"/>
|
150
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
151
|
+
<dynamicField name="*_ds" stored="true" type="date" multiValued="false" indexed="true"/>
|
152
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
153
|
+
<dynamicField name="*_dms" stored="true" type="date" multiValued="true" indexed="true"/>
|
154
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
155
|
+
<dynamicField name="*_e" stored="false" type="sdouble" multiValued="false" indexed="true"/>
|
156
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
157
|
+
<dynamicField name="*_em" stored="false" type="sdouble" multiValued="true" indexed="true"/>
|
158
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
159
|
+
<dynamicField name="*_es" stored="true" type="sdouble" multiValued="false" indexed="true"/>
|
160
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
161
|
+
<dynamicField name="*_ems" stored="true" type="sdouble" multiValued="true" indexed="true"/>
|
162
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
163
|
+
<dynamicField name="*_f" stored="false" type="sfloat" multiValued="false" indexed="true"/>
|
164
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
165
|
+
<dynamicField name="*_fm" stored="false" type="sfloat" multiValued="true" indexed="true"/>
|
166
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
167
|
+
<dynamicField name="*_fs" stored="true" type="sfloat" multiValued="false" indexed="true"/>
|
168
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
169
|
+
<dynamicField name="*_fms" stored="true" type="sfloat" multiValued="true" indexed="true"/>
|
170
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
171
|
+
<dynamicField name="*_i" stored="false" type="sint" multiValued="false" indexed="true"/>
|
172
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
173
|
+
<dynamicField name="*_im" stored="false" type="sint" multiValued="true" indexed="true"/>
|
174
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
175
|
+
<dynamicField name="*_is" stored="true" type="sint" multiValued="false" indexed="true"/>
|
176
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
177
|
+
<dynamicField name="*_ims" stored="true" type="sint" multiValued="true" indexed="true"/>
|
178
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
179
|
+
<dynamicField name="*_l" stored="false" type="slong" multiValued="false" indexed="true"/>
|
180
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
181
|
+
<dynamicField name="*_lm" stored="false" type="slong" multiValued="true" indexed="true"/>
|
182
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
183
|
+
<dynamicField name="*_ls" stored="true" type="slong" multiValued="false" indexed="true"/>
|
184
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
185
|
+
<dynamicField name="*_lms" stored="true" type="slong" multiValued="true" indexed="true"/>
|
186
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
187
|
+
<dynamicField name="*_s" stored="false" type="string" multiValued="false" indexed="true"/>
|
188
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
189
|
+
<dynamicField name="*_sm" stored="false" type="string" multiValued="true" indexed="true"/>
|
190
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
191
|
+
<dynamicField name="*_ss" stored="true" type="string" multiValued="false" indexed="true"/>
|
192
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
193
|
+
<dynamicField name="*_sms" stored="true" type="string" multiValued="true" indexed="true"/>
|
194
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
195
|
+
<dynamicField name="*_it" stored="false" type="tint" multiValued="false" indexed="true"/>
|
196
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
197
|
+
<dynamicField name="*_itm" stored="false" type="tint" multiValued="true" indexed="true"/>
|
198
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
199
|
+
<dynamicField name="*_its" stored="true" type="tint" multiValued="false" indexed="true"/>
|
200
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
201
|
+
<dynamicField name="*_itms" stored="true" type="tint" multiValued="true" indexed="true"/>
|
202
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
203
|
+
<dynamicField name="*_ft" stored="false" type="tfloat" multiValued="false" indexed="true"/>
|
204
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
205
|
+
<dynamicField name="*_ftm" stored="false" type="tfloat" multiValued="true" indexed="true"/>
|
206
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
207
|
+
<dynamicField name="*_fts" stored="true" type="tfloat" multiValued="false" indexed="true"/>
|
208
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
209
|
+
<dynamicField name="*_ftms" stored="true" type="tfloat" multiValued="true" indexed="true"/>
|
210
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
211
|
+
<dynamicField name="*_dt" stored="false" type="tdate" multiValued="false" indexed="true"/>
|
212
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
213
|
+
<dynamicField name="*_dtm" stored="false" type="tdate" multiValued="true" indexed="true"/>
|
214
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
215
|
+
<dynamicField name="*_dts" stored="true" type="tdate" multiValued="false" indexed="true"/>
|
216
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
217
|
+
<dynamicField name="*_dtms" stored="true" type="tdate" multiValued="true" indexed="true"/>
|
218
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
219
|
+
<dynamicField name="*_textv" stored="false" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
220
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
221
|
+
<dynamicField name="*_textsv" stored="true" termVectors="true" type="text" multiValued="true" indexed="true"/>
|
222
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
223
|
+
<dynamicField name="*_et" stored="false" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
224
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
225
|
+
<dynamicField name="*_etm" stored="false" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
226
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
227
|
+
<dynamicField name="*_ets" stored="true" termVectors="true" type="tdouble" multiValued="false" indexed="true"/>
|
228
|
+
<!-- *** This dynamicField is used by Sunspot! *** -->
|
229
|
+
<dynamicField name="*_etms" stored="true" termVectors="true" type="tdouble" multiValued="true" indexed="true"/>
|
230
|
+
|
231
|
+
<!-- Type used to index the lat and lon components for the "location" FieldType -->
|
232
|
+
<dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" multiValued="false"/>
|
233
|
+
<dynamicField name="*_p" type="location" indexed="true" stored="true" multiValued="false"/>
|
234
|
+
|
235
|
+
<dynamicField name="*_ll" stored="false" type="location" multiValued="false" indexed="true"/>
|
236
|
+
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
237
|
+
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
238
|
+
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
239
|
+
|
240
|
+
<!-- required by Solr 4 -->
|
241
|
+
<field name="_version_" type="string" indexed="true" stored="true" multiValued="false" />
|
242
|
+
</fields>
|
243
|
+
|
244
|
+
<!-- Field to use to determine and enforce document uniqueness.
|
245
|
+
Unless this field is marked with required="false", it will be a required field
|
246
|
+
-->
|
247
|
+
<uniqueKey>id</uniqueKey>
|
248
|
+
<!-- field for the QueryParser to use when an explicit fieldname is absent -->
|
249
|
+
<defaultSearchField>text</defaultSearchField>
|
250
|
+
<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
|
251
|
+
<solrQueryParser defaultOperator="AND"/>
|
252
|
+
<!-- copyField commands copy one field to another at the time a document
|
253
|
+
is added to the index. It's used either to index the same field differently,
|
254
|
+
or to add multiple fields to the same field for easier/faster searching. -->
|
255
|
+
</schema>
|
@@ -0,0 +1,667 @@
|
|
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
|
+
For more details about configurations options that may appear in
|
21
|
+
this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
22
|
+
-->
|
23
|
+
<config>
|
24
|
+
<!-- In all configuration below, a prefix of "solr." for class names
|
25
|
+
is an alias that causes solr to search appropriate packages,
|
26
|
+
including org.apache.solr.(search|update|request|core|analysis)
|
27
|
+
|
28
|
+
You may also specify a fully qualified Java classname if you
|
29
|
+
have your own custom plugins.
|
30
|
+
-->
|
31
|
+
|
32
|
+
<!-- Controls what version of Lucene various components of Solr
|
33
|
+
adhere to. Generally, you want to use the latest version to
|
34
|
+
get all bug fixes and improvements. It is highly recommended
|
35
|
+
that you fully re-index after changing this setting as it can
|
36
|
+
affect both how text is indexed and queried.
|
37
|
+
-->
|
38
|
+
<luceneMatchVersion>LUCENE_41</luceneMatchVersion>
|
39
|
+
|
40
|
+
<!-- <lib/> directives can be used to instruct Solr to load an Jars
|
41
|
+
identified and use them to resolve any "plugins" specified in
|
42
|
+
your solrconfig.xml or schema.xml (ie: Analyzers, Request
|
43
|
+
Handlers, etc...).
|
44
|
+
|
45
|
+
All directories and paths are resolved relative to the
|
46
|
+
instanceDir.
|
47
|
+
|
48
|
+
Please note that <lib/> directives are processed in the order
|
49
|
+
that they appear in your solrconfig.xml file, and are "stacked"
|
50
|
+
on top of each other when building a ClassLoader - so if you have
|
51
|
+
plugin jars with dependencies on other jars, the "lower level"
|
52
|
+
dependency jars should be loaded first.
|
53
|
+
|
54
|
+
If a "./lib" directory exists in your instanceDir, all files
|
55
|
+
found in it are included as if you had used the following
|
56
|
+
syntax...
|
57
|
+
|
58
|
+
<lib dir="./lib" />
|
59
|
+
-->
|
60
|
+
<dataDir>${solr.data.dir:}</dataDir>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- The DirectoryFactory to use for indexes.
|
64
|
+
|
65
|
+
solr.StandardDirectoryFactory is filesystem
|
66
|
+
based and tries to pick the best implementation for the current
|
67
|
+
JVM and platform. solr.NRTCachingDirectoryFactory, the default,
|
68
|
+
wraps solr.StandardDirectoryFactory and caches small files in memory
|
69
|
+
for better NRT performance.
|
70
|
+
|
71
|
+
One can force a particular implementation via solr.MMapDirectoryFactory,
|
72
|
+
solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
|
73
|
+
|
74
|
+
solr.RAMDirectoryFactory is memory based, not
|
75
|
+
persistent, and doesn't work with replication.
|
76
|
+
-->
|
77
|
+
<directoryFactory name="DirectoryFactory"
|
78
|
+
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
|
79
|
+
|
80
|
+
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
81
|
+
Index Config - These settings control low-level behavior of indexing
|
82
|
+
Most example settings here show the default value, but are commented
|
83
|
+
out, to more easily see where customizations have been made.
|
84
|
+
|
85
|
+
Note: This replaces <indexDefaults> and <mainIndex> from older versions
|
86
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
87
|
+
<indexConfig>
|
88
|
+
<!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
|
89
|
+
LimitTokenCountFilterFactory in your fieldType definition. E.g.
|
90
|
+
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
|
91
|
+
-->
|
92
|
+
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
|
93
|
+
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
|
94
|
+
|
95
|
+
<!-- The maximum number of simultaneous threads that may be
|
96
|
+
indexing documents at once in IndexWriter; if more than this
|
97
|
+
many threads arrive they will wait for others to finish.
|
98
|
+
Default in Solr/Lucene is 8. -->
|
99
|
+
<maxIndexingThreads>2</maxIndexingThreads>
|
100
|
+
|
101
|
+
<useCompoundFile>true</useCompoundFile>
|
102
|
+
|
103
|
+
<!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
|
104
|
+
indexing for buffering added documents and deletions before they are
|
105
|
+
flushed to the Directory.
|
106
|
+
maxBufferedDocs sets a limit on the number of documents buffered
|
107
|
+
before flushing.
|
108
|
+
If both ramBufferSizeMB and maxBufferedDocs is set, then
|
109
|
+
Lucene will flush based on whichever limit is hit first. -->
|
110
|
+
<ramBufferSizeMB>20</ramBufferSizeMB> -->
|
111
|
+
<maxBufferedDocs>10000</maxBufferedDocs>
|
112
|
+
|
113
|
+
<!-- Expert: Merge Policy
|
114
|
+
The Merge Policy in Lucene controls how merging of segments is done.
|
115
|
+
The default since Solr/Lucene 3.3 is TieredMergePolicy.
|
116
|
+
The default since Lucene 2.3 was the LogByteSizeMergePolicy,
|
117
|
+
Even older versions of Lucene used LogDocMergePolicy.
|
118
|
+
-->
|
119
|
+
<mergePolicy class="org.apache.lucene.index.TieredMergePolicy">
|
120
|
+
<int name="maxMergeAtOnce">4</int>
|
121
|
+
<int name="segmentsPerTier">4</int>
|
122
|
+
</mergePolicy>
|
123
|
+
|
124
|
+
<unlockOnStartup>true</unlockOnStartup>
|
125
|
+
|
126
|
+
</indexConfig>
|
127
|
+
|
128
|
+
<updateHandler class="solr.DirectUpdateHandler2">
|
129
|
+
|
130
|
+
<!-- Enables a transaction log, used for real-time get, durability, and
|
131
|
+
and solr cloud replica recovery. The log can grow as big as
|
132
|
+
uncommitted changes to the index, so use of a hard autoCommit
|
133
|
+
is recommended (see below).
|
134
|
+
"dir" - the target directory for transaction logs, defaults to the
|
135
|
+
solr data directory. -->
|
136
|
+
<updateLog>
|
137
|
+
<str name="dir">${solr.ulog.dir:}</str>
|
138
|
+
</updateLog>
|
139
|
+
|
140
|
+
<autoCommit>
|
141
|
+
<maxTime>15000</maxTime>
|
142
|
+
<openSearcher>false</openSearcher>
|
143
|
+
</autoCommit>
|
144
|
+
|
145
|
+
<autoSoftCommit>
|
146
|
+
<maxTime>5000</maxTime>
|
147
|
+
</autoSoftCommit>
|
148
|
+
</updateHandler>
|
149
|
+
|
150
|
+
<query>
|
151
|
+
<maxBooleanClauses>1024</maxBooleanClauses>
|
152
|
+
|
153
|
+
|
154
|
+
<!-- Solr Internal Query Caches
|
155
|
+
|
156
|
+
There are two implementations of cache available for Solr,
|
157
|
+
LRUCache, based on a synchronized LinkedHashMap, and
|
158
|
+
FastLRUCache, based on a ConcurrentHashMap.
|
159
|
+
|
160
|
+
FastLRUCache has faster gets and slower puts in single
|
161
|
+
threaded operation and thus is generally faster than LRUCache
|
162
|
+
when the hit ratio of the cache is high (> 75%), and may be
|
163
|
+
faster under other scenarios on multi-cpu systems.
|
164
|
+
-->
|
165
|
+
|
166
|
+
<!-- Filter Cache
|
167
|
+
|
168
|
+
Cache used by SolrIndexSearcher for filters (DocSets),
|
169
|
+
unordered sets of *all* documents that match a query. When a
|
170
|
+
new searcher is opened, its caches may be prepopulated or
|
171
|
+
"autowarmed" using data from caches in the old searcher.
|
172
|
+
autowarmCount is the number of items to prepopulate. For
|
173
|
+
LRUCache, the autowarmed items will be the most recently
|
174
|
+
accessed items.
|
175
|
+
|
176
|
+
Parameters:
|
177
|
+
class - the SolrCache implementation LRUCache or
|
178
|
+
(LRUCache or FastLRUCache)
|
179
|
+
size - the maximum number of entries in the cache
|
180
|
+
initialSize - the initial capacity (number of entries) of
|
181
|
+
the cache. (see java.util.HashMap)
|
182
|
+
autowarmCount - the number of entries to prepopulate from
|
183
|
+
and old cache.
|
184
|
+
-->
|
185
|
+
<filterCache class="solr.FastLRUCache"
|
186
|
+
size="512"
|
187
|
+
initialSize="512"
|
188
|
+
autowarmCount="0"/>
|
189
|
+
|
190
|
+
<!-- Query Result Cache
|
191
|
+
|
192
|
+
Caches results of searches - ordered lists of document ids
|
193
|
+
(DocList) based on a query, a sort, and the range of documents requested.
|
194
|
+
-->
|
195
|
+
<queryResultCache class="solr.LRUCache"
|
196
|
+
size="512"
|
197
|
+
initialSize="512"
|
198
|
+
autowarmCount="0"/>
|
199
|
+
|
200
|
+
<!-- Document Cache
|
201
|
+
|
202
|
+
Caches Lucene Document objects (the stored fields for each
|
203
|
+
document). Since Lucene internal document ids are transient,
|
204
|
+
this cache will not be autowarmed.
|
205
|
+
-->
|
206
|
+
<documentCache class="solr.LRUCache"
|
207
|
+
size="512"
|
208
|
+
initialSize="512"
|
209
|
+
autowarmCount="0"/>
|
210
|
+
|
211
|
+
<!-- Lazy Field Loading
|
212
|
+
|
213
|
+
If true, stored fields that are not requested will be loaded
|
214
|
+
lazily. This can result in a significant speed improvement
|
215
|
+
if the usual case is to not load all stored fields,
|
216
|
+
especially if the skipped fields are large compressed text
|
217
|
+
fields.
|
218
|
+
-->
|
219
|
+
<enableLazyFieldLoading>true</enableLazyFieldLoading>
|
220
|
+
|
221
|
+
<!-- Use Filter For Sorted Query
|
222
|
+
|
223
|
+
A possible optimization that attempts to use a filter to
|
224
|
+
satisfy a search. If the requested sort does not include
|
225
|
+
score, then the filterCache will be checked for a filter
|
226
|
+
matching the query. If found, the filter will be used as the
|
227
|
+
source of document ids, and then the sort will be applied to
|
228
|
+
that.
|
229
|
+
|
230
|
+
For most situations, this will not be useful unless you
|
231
|
+
frequently get the same search repeatedly with different sort
|
232
|
+
options, and none of them ever use "score"
|
233
|
+
-->
|
234
|
+
<!--
|
235
|
+
<useFilterForSortedQuery>true</useFilterForSortedQuery>
|
236
|
+
-->
|
237
|
+
|
238
|
+
<!-- Result Window Size
|
239
|
+
|
240
|
+
An optimization for use with the queryResultCache. When a search
|
241
|
+
is requested, a superset of the requested number of document ids
|
242
|
+
are collected. For example, if a search for a particular query
|
243
|
+
requests matching documents 10 through 19, and queryWindowSize is 50,
|
244
|
+
then documents 0 through 49 will be collected and cached. Any further
|
245
|
+
requests in that range can be satisfied via the cache.
|
246
|
+
-->
|
247
|
+
<queryResultWindowSize>20</queryResultWindowSize>
|
248
|
+
|
249
|
+
<!-- Maximum number of documents to cache for any entry in the
|
250
|
+
queryResultCache.
|
251
|
+
-->
|
252
|
+
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
|
253
|
+
|
254
|
+
<!-- Query Related Event Listeners
|
255
|
+
|
256
|
+
Various IndexSearcher related events can trigger Listeners to
|
257
|
+
take actions.
|
258
|
+
|
259
|
+
newSearcher - fired whenever a new searcher is being prepared
|
260
|
+
and there is a current searcher handling requests (aka
|
261
|
+
registered). It can be used to prime certain caches to
|
262
|
+
prevent long request times for certain requests.
|
263
|
+
|
264
|
+
firstSearcher - fired whenever a new searcher is being
|
265
|
+
prepared but there is no current registered searcher to handle
|
266
|
+
requests or to gain autowarming data from.
|
267
|
+
|
268
|
+
|
269
|
+
-->
|
270
|
+
|
271
|
+
<!-- Use Cold Searcher
|
272
|
+
|
273
|
+
If a search request comes in and there is no current
|
274
|
+
registered searcher, then immediately register the still
|
275
|
+
warming searcher and use it. If "false" then all requests
|
276
|
+
will block until the first searcher is done warming.
|
277
|
+
-->
|
278
|
+
<useColdSearcher>false</useColdSearcher>
|
279
|
+
|
280
|
+
<!-- Max Warming Searchers
|
281
|
+
|
282
|
+
Maximum number of searchers that may be warming in the
|
283
|
+
background concurrently. An error is returned if this limit
|
284
|
+
is exceeded.
|
285
|
+
|
286
|
+
Recommend values of 1-2 for read-only slaves, higher for
|
287
|
+
masters w/o cache warming.
|
288
|
+
-->
|
289
|
+
<maxWarmingSearchers>5</maxWarmingSearchers>
|
290
|
+
|
291
|
+
</query>
|
292
|
+
|
293
|
+
|
294
|
+
<!-- Request Dispatcher
|
295
|
+
|
296
|
+
This section contains instructions for how the SolrDispatchFilter
|
297
|
+
should behave when processing requests for this SolrCore.
|
298
|
+
|
299
|
+
handleSelect is a legacy option that affects the behavior of requests
|
300
|
+
such as /select?qt=XXX
|
301
|
+
|
302
|
+
handleSelect="true" will cause the SolrDispatchFilter to process
|
303
|
+
the request and dispatch the query to a handler specified by the
|
304
|
+
"qt" param, assuming "/select" isn't already registered.
|
305
|
+
|
306
|
+
handleSelect="false" will cause the SolrDispatchFilter to
|
307
|
+
ignore "/select" requests, resulting in a 404 unless a handler
|
308
|
+
is explicitly registered with the name "/select"
|
309
|
+
|
310
|
+
handleSelect="true" is not recommended for new users, but is the default
|
311
|
+
for backwards compatibility
|
312
|
+
-->
|
313
|
+
<requestDispatcher handleSelect="false" >
|
314
|
+
<!-- Request Parsing
|
315
|
+
|
316
|
+
These settings indicate how Solr Requests may be parsed, and
|
317
|
+
what restrictions may be placed on the ContentStreams from
|
318
|
+
those requests
|
319
|
+
|
320
|
+
enableRemoteStreaming - enables use of the stream.file
|
321
|
+
and stream.url parameters for specifying remote streams.
|
322
|
+
|
323
|
+
multipartUploadLimitInKB - specifies the max size (in KiB) of
|
324
|
+
Multipart File Uploads that Solr will allow in a Request.
|
325
|
+
|
326
|
+
formdataUploadLimitInKB - specifies the max size (in KiB) of
|
327
|
+
form data (application/x-www-form-urlencoded) sent via
|
328
|
+
POST. You can use POST to pass request parameters not
|
329
|
+
fitting into the URL.
|
330
|
+
|
331
|
+
*** WARNING ***
|
332
|
+
The settings below authorize Solr to fetch remote files, You
|
333
|
+
should make sure your system has some authentication before
|
334
|
+
using enableRemoteStreaming="true"
|
335
|
+
|
336
|
+
-->
|
337
|
+
|
338
|
+
<!-- HTTP Caching
|
339
|
+
|
340
|
+
Set HTTP caching related parameters (for proxy caches and clients).
|
341
|
+
|
342
|
+
The options below instruct Solr not to output any HTTP Caching
|
343
|
+
related headers
|
344
|
+
-->
|
345
|
+
<httpCaching never304="true" />
|
346
|
+
<!-- If you include a <cacheControl> directive, it will be used to
|
347
|
+
generate a Cache-Control header (as well as an Expires header
|
348
|
+
if the value contains "max-age=")
|
349
|
+
|
350
|
+
By default, no Cache-Control header is generated.
|
351
|
+
|
352
|
+
You can use the <cacheControl> option even if you have set
|
353
|
+
never304="true"
|
354
|
+
-->
|
355
|
+
<!--
|
356
|
+
<httpCaching never304="true" >
|
357
|
+
<cacheControl>max-age=30, public</cacheControl>
|
358
|
+
</httpCaching>
|
359
|
+
-->
|
360
|
+
<!-- To enable Solr to respond with automatically generated HTTP
|
361
|
+
Caching headers, and to response to Cache Validation requests
|
362
|
+
correctly, set the value of never304="false"
|
363
|
+
|
364
|
+
This will cause Solr to generate Last-Modified and ETag
|
365
|
+
headers based on the properties of the Index.
|
366
|
+
|
367
|
+
The following options can also be specified to affect the
|
368
|
+
values of these headers...
|
369
|
+
|
370
|
+
lastModFrom - the default value is "openTime" which means the
|
371
|
+
Last-Modified value (and validation against If-Modified-Since
|
372
|
+
requests) will all be relative to when the current Searcher
|
373
|
+
was opened. You can change it to lastModFrom="dirLastMod" if
|
374
|
+
you want the value to exactly correspond to when the physical
|
375
|
+
index was last modified.
|
376
|
+
|
377
|
+
etagSeed="..." is an option you can change to force the ETag
|
378
|
+
header (and validation against If-None-Match requests) to be
|
379
|
+
different even if the index has not changed (ie: when making
|
380
|
+
significant changes to your config file)
|
381
|
+
|
382
|
+
(lastModifiedFrom and etagSeed are both ignored if you use
|
383
|
+
the never304="true" option)
|
384
|
+
-->
|
385
|
+
<!--
|
386
|
+
<httpCaching lastModifiedFrom="openTime"
|
387
|
+
etagSeed="Solr">
|
388
|
+
<cacheControl>max-age=30, public</cacheControl>
|
389
|
+
</httpCaching>
|
390
|
+
-->
|
391
|
+
</requestDispatcher>
|
392
|
+
|
393
|
+
<!-- Request Handlers
|
394
|
+
|
395
|
+
http://wiki.apache.org/solr/SolrRequestHandler
|
396
|
+
|
397
|
+
Incoming queries will be dispatched to a specific handler by name
|
398
|
+
based on the path specified in the request.
|
399
|
+
|
400
|
+
Legacy behavior: If the request path uses "/select" but no Request
|
401
|
+
Handler has that name, and if handleSelect="true" has been specified in
|
402
|
+
the requestDispatcher, then the Request Handler is dispatched based on
|
403
|
+
the qt parameter. Handlers without a leading '/' are accessed this way
|
404
|
+
like so: http://host/app/[core/]select?qt=name If no qt is
|
405
|
+
given, then the requestHandler that declares default="true" will be
|
406
|
+
used or the one named "standard".
|
407
|
+
|
408
|
+
If a Request Handler is declared with startup="lazy", then it will
|
409
|
+
not be initialized until the first request that uses it.
|
410
|
+
|
411
|
+
-->
|
412
|
+
<!-- SearchHandler
|
413
|
+
|
414
|
+
http://wiki.apache.org/solr/SearchHandler
|
415
|
+
|
416
|
+
For processing Search Queries, the primary Request Handler
|
417
|
+
provided with Solr is "SearchHandler" It delegates to a sequent
|
418
|
+
of SearchComponents (see below) and supports distributed
|
419
|
+
queries across multiple shards
|
420
|
+
-->
|
421
|
+
<requestHandler name="/select" class="solr.SearchHandler">
|
422
|
+
<arr name="last-components">
|
423
|
+
<str>spellcheck</str>
|
424
|
+
</arr>
|
425
|
+
</requestHandler>
|
426
|
+
|
427
|
+
<!-- A request handler that returns indented JSON by default -->
|
428
|
+
<requestHandler name="/query" class="solr.SearchHandler">
|
429
|
+
<lst name="defaults">
|
430
|
+
<str name="echoParams">explicit</str>
|
431
|
+
<str name="wt">json</str>
|
432
|
+
<str name="indent">true</str>
|
433
|
+
<str name="df">text</str>
|
434
|
+
</lst>
|
435
|
+
<arr name="last-components">
|
436
|
+
<str>spellcheck</str>
|
437
|
+
</arr>
|
438
|
+
</requestHandler>
|
439
|
+
|
440
|
+
|
441
|
+
<!-- realtime get handler, guaranteed to return the latest stored fields of
|
442
|
+
any document, without the need to commit or open a new searcher. The
|
443
|
+
current implementation relies on the updateLog feature being enabled. -->
|
444
|
+
<requestHandler name="/get" class="solr.RealTimeGetHandler">
|
445
|
+
<lst name="defaults">
|
446
|
+
<str name="omitHeader">true</str>
|
447
|
+
<str name="wt">json</str>
|
448
|
+
<str name="indent">true</str>
|
449
|
+
</lst>
|
450
|
+
</requestHandler>
|
451
|
+
|
452
|
+
<requestHandler name="/update" class="solr.UpdateRequestHandler">
|
453
|
+
</requestHandler>
|
454
|
+
|
455
|
+
<requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler">
|
456
|
+
<lst name="defaults">
|
457
|
+
<str name="stream.contentType">application/json</str>
|
458
|
+
</lst>
|
459
|
+
</requestHandler>
|
460
|
+
|
461
|
+
<requestHandler name="/update/csv" class="solr.CSVRequestHandler">
|
462
|
+
<lst name="defaults">
|
463
|
+
<str name="stream.contentType">application/csv</str>
|
464
|
+
</lst>
|
465
|
+
</requestHandler>
|
466
|
+
|
467
|
+
<requestHandler name="/update/extract"
|
468
|
+
startup="lazy"
|
469
|
+
class="solr.extraction.ExtractingRequestHandler" >
|
470
|
+
<lst name="defaults">
|
471
|
+
<str name="lowernames">true</str>
|
472
|
+
<str name="uprefix">ignored_</str>
|
473
|
+
|
474
|
+
<!-- capture link hrefs but ignore div attributes -->
|
475
|
+
<str name="captureAttr">true</str>
|
476
|
+
<str name="fmap.a">links</str>
|
477
|
+
<str name="fmap.div">ignored_</str>
|
478
|
+
</lst>
|
479
|
+
</requestHandler>
|
480
|
+
|
481
|
+
<requestHandler name="/analysis/field"
|
482
|
+
startup="lazy"
|
483
|
+
class="solr.FieldAnalysisRequestHandler" />
|
484
|
+
|
485
|
+
<requestHandler name="/analysis/document"
|
486
|
+
class="solr.DocumentAnalysisRequestHandler"
|
487
|
+
startup="lazy" />
|
488
|
+
|
489
|
+
<!-- ping/healthcheck -->
|
490
|
+
<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
|
491
|
+
<lst name="invariants">
|
492
|
+
<str name="q">solrpingquery</str>
|
493
|
+
</lst>
|
494
|
+
<lst name="defaults">
|
495
|
+
<str name="echoParams">all</str>
|
496
|
+
</lst>
|
497
|
+
</requestHandler>
|
498
|
+
|
499
|
+
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
|
500
|
+
<lst name="defaults">
|
501
|
+
<str name="echoParams">explicit</str>
|
502
|
+
<str name="echoHandler">true</str>
|
503
|
+
</lst>
|
504
|
+
</requestHandler>
|
505
|
+
|
506
|
+
<requestHandler name="/replication" class="solr.ReplicationHandler" >
|
507
|
+
</requestHandler>
|
508
|
+
|
509
|
+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
510
|
+
|
511
|
+
<str name="queryAnalyzerFieldType">textSpell</str>
|
512
|
+
|
513
|
+
<!-- Multiple "Spell Checkers" can be declared and used by this
|
514
|
+
component
|
515
|
+
-->
|
516
|
+
|
517
|
+
<!-- a spellchecker built from a field of the main index -->
|
518
|
+
<lst name="spellchecker">
|
519
|
+
<str name="name">default</str>
|
520
|
+
<str name="field">name</str>
|
521
|
+
<str name="classname">solr.DirectSolrSpellChecker</str>
|
522
|
+
<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
|
523
|
+
<str name="distanceMeasure">internal</str>
|
524
|
+
<!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
|
525
|
+
<float name="accuracy">0.5</float>
|
526
|
+
<!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
|
527
|
+
<int name="maxEdits">2</int>
|
528
|
+
<!-- the minimum shared prefix when enumerating terms -->
|
529
|
+
<int name="minPrefix">1</int>
|
530
|
+
<!-- maximum number of inspections per result. -->
|
531
|
+
<int name="maxInspections">5</int>
|
532
|
+
<!-- minimum length of a query term to be considered for correction -->
|
533
|
+
<int name="minQueryLength">4</int>
|
534
|
+
<!-- maximum threshold of documents a query term can appear to be considered for correction -->
|
535
|
+
<float name="maxQueryFrequency">0.01</float>
|
536
|
+
<!-- uncomment this to require suggestions to occur in 1% of the documents
|
537
|
+
<float name="thresholdTokenFrequency">.01</float>
|
538
|
+
-->
|
539
|
+
</lst>
|
540
|
+
|
541
|
+
<!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
|
542
|
+
<lst name="spellchecker">
|
543
|
+
<str name="name">wordbreak</str>
|
544
|
+
<str name="classname">solr.WordBreakSolrSpellChecker</str>
|
545
|
+
<str name="field">name</str>
|
546
|
+
<str name="combineWords">true</str>
|
547
|
+
<str name="breakWords">true</str>
|
548
|
+
<int name="maxChanges">10</int>
|
549
|
+
</lst>
|
550
|
+
</searchComponent>
|
551
|
+
|
552
|
+
<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
|
553
|
+
|
554
|
+
<searchComponent name="terms" class="solr.TermsComponent"/>
|
555
|
+
|
556
|
+
<searchComponent class="solr.HighlightComponent" name="highlight">
|
557
|
+
<highlighting>
|
558
|
+
<!-- Configure the standard fragmenter -->
|
559
|
+
<!-- This could most likely be commented out in the "default" case -->
|
560
|
+
<fragmenter name="gap"
|
561
|
+
default="true"
|
562
|
+
class="solr.highlight.GapFragmenter">
|
563
|
+
<lst name="defaults">
|
564
|
+
<int name="hl.fragsize">100</int>
|
565
|
+
</lst>
|
566
|
+
</fragmenter>
|
567
|
+
|
568
|
+
<!-- A regular-expression-based fragmenter
|
569
|
+
(for sentence extraction)
|
570
|
+
-->
|
571
|
+
<fragmenter name="regex"
|
572
|
+
class="solr.highlight.RegexFragmenter">
|
573
|
+
<lst name="defaults">
|
574
|
+
<!-- slightly smaller fragsizes work better because of slop -->
|
575
|
+
<int name="hl.fragsize">70</int>
|
576
|
+
<!-- allow 50% slop on fragment sizes -->
|
577
|
+
<float name="hl.regex.slop">0.5</float>
|
578
|
+
<!-- a basic sentence pattern -->
|
579
|
+
<str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
|
580
|
+
</lst>
|
581
|
+
</fragmenter>
|
582
|
+
|
583
|
+
<!-- Configure the standard formatter -->
|
584
|
+
<formatter name="html"
|
585
|
+
default="true"
|
586
|
+
class="solr.highlight.HtmlFormatter">
|
587
|
+
<lst name="defaults">
|
588
|
+
<str name="hl.simple.pre"><![CDATA[<em>]]></str>
|
589
|
+
<str name="hl.simple.post"><![CDATA[</em>]]></str>
|
590
|
+
</lst>
|
591
|
+
</formatter>
|
592
|
+
|
593
|
+
<!-- Configure the standard encoder -->
|
594
|
+
<encoder name="html"
|
595
|
+
class="solr.highlight.HtmlEncoder" />
|
596
|
+
|
597
|
+
<!-- Configure the standard fragListBuilder -->
|
598
|
+
<fragListBuilder name="simple"
|
599
|
+
class="solr.highlight.SimpleFragListBuilder"/>
|
600
|
+
|
601
|
+
<!-- Configure the single fragListBuilder -->
|
602
|
+
<fragListBuilder name="single"
|
603
|
+
class="solr.highlight.SingleFragListBuilder"/>
|
604
|
+
|
605
|
+
<!-- Configure the weighted fragListBuilder -->
|
606
|
+
<fragListBuilder name="weighted"
|
607
|
+
default="true"
|
608
|
+
class="solr.highlight.WeightedFragListBuilder"/>
|
609
|
+
|
610
|
+
<!-- default tag FragmentsBuilder -->
|
611
|
+
<fragmentsBuilder name="default"
|
612
|
+
default="true"
|
613
|
+
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
614
|
+
<!--
|
615
|
+
<lst name="defaults">
|
616
|
+
<str name="hl.multiValuedSeparatorChar">/</str>
|
617
|
+
</lst>
|
618
|
+
-->
|
619
|
+
</fragmentsBuilder>
|
620
|
+
|
621
|
+
<!-- multi-colored tag FragmentsBuilder -->
|
622
|
+
<fragmentsBuilder name="colored"
|
623
|
+
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
624
|
+
<lst name="defaults">
|
625
|
+
<str name="hl.tag.pre"><![CDATA[
|
626
|
+
<b style="background:yellow">,<b style="background:lawgreen">,
|
627
|
+
<b style="background:aquamarine">,<b style="background:magenta">,
|
628
|
+
<b style="background:palegreen">,<b style="background:coral">,
|
629
|
+
<b style="background:wheat">,<b style="background:khaki">,
|
630
|
+
<b style="background:lime">,<b style="background:deepskyblue">]]></str>
|
631
|
+
<str name="hl.tag.post"><![CDATA[</b>]]></str>
|
632
|
+
</lst>
|
633
|
+
</fragmentsBuilder>
|
634
|
+
|
635
|
+
<boundaryScanner name="default"
|
636
|
+
default="true"
|
637
|
+
class="solr.highlight.SimpleBoundaryScanner">
|
638
|
+
<lst name="defaults">
|
639
|
+
<str name="hl.bs.maxScan">10</str>
|
640
|
+
<str name="hl.bs.chars">.,!? 	 </str>
|
641
|
+
</lst>
|
642
|
+
</boundaryScanner>
|
643
|
+
|
644
|
+
<boundaryScanner name="breakIterator"
|
645
|
+
class="solr.highlight.BreakIteratorBoundaryScanner">
|
646
|
+
<lst name="defaults">
|
647
|
+
<!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
|
648
|
+
<str name="hl.bs.type">WORD</str>
|
649
|
+
<!-- language and country are used when constructing Locale object. -->
|
650
|
+
<!-- And the Locale object will be used when getting instance of BreakIterator -->
|
651
|
+
<str name="hl.bs.language">en</str>
|
652
|
+
<str name="hl.bs.country">US</str>
|
653
|
+
</lst>
|
654
|
+
</boundaryScanner>
|
655
|
+
</highlighting>
|
656
|
+
</searchComponent>
|
657
|
+
|
658
|
+
<requestHandler class="solr.MoreLikeThisHandler" name="/mlt">
|
659
|
+
<lst name="defaults">
|
660
|
+
<str name="mlt.mintf">1</str>
|
661
|
+
<str name="mlt.mindf">2</str>
|
662
|
+
</lst>
|
663
|
+
</requestHandler>
|
664
|
+
|
665
|
+
<!-- Admin Handlers - This will register all the standard admin RequestHandlers. -->
|
666
|
+
<requestHandler name="/admin/" class="solr.admin.AdminHandlers" />
|
667
|
+
</config>
|