sunspot_solr 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sunspot/solr/tasks.rb +7 -6
- data/solr/solr/conf/schema.xml +28 -8
- data/solr/solr/conf/solrconfig.xml +89 -76
- metadata +11 -5
- checksums.yaml +0 -7
data/lib/sunspot/solr/tasks.rb
CHANGED
@@ -2,6 +2,11 @@ namespace :sunspot do
|
|
2
2
|
namespace :solr do
|
3
3
|
desc 'Start the Solr instance'
|
4
4
|
task start: :environment do
|
5
|
+
case RUBY_PLATFORM
|
6
|
+
when /w(in)?32$/, /java$/
|
7
|
+
abort("This command is not supported on #{RUBY_PLATFORM}. " +
|
8
|
+
"Use rake sunspot:solr:run to run Solr in the foreground.")
|
9
|
+
end
|
5
10
|
server.start
|
6
11
|
puts 'Successfully started Solr ...'
|
7
12
|
end
|
@@ -24,14 +29,10 @@ namespace :sunspot do
|
|
24
29
|
end
|
25
30
|
|
26
31
|
# for backwards compatibility
|
27
|
-
task reindex: :"sunspot:reindex"
|
32
|
+
task :reindex, [:batch_size, :models, :silence] => :"sunspot:reindex"
|
28
33
|
|
29
34
|
def server
|
30
|
-
|
31
|
-
when /w(in)?32$/, /java$/
|
32
|
-
abort("This command is not supported on #{RUBY_PLATFORM}. " +
|
33
|
-
"Use rake sunspot:solr:run to run Solr in the foreground.")
|
34
|
-
end
|
35
|
+
|
35
36
|
|
36
37
|
if defined?(Sunspot::Rails::Server)
|
37
38
|
Sunspot::Rails::Server.new
|
data/solr/solr/conf/schema.xml
CHANGED
@@ -15,10 +15,10 @@
|
|
15
15
|
See the License for the specific language governing permissions and
|
16
16
|
limitations under the License.
|
17
17
|
-->
|
18
|
-
<!--
|
18
|
+
<!--
|
19
19
|
This is the Solr schema file. This file should be named "schema.xml" and
|
20
20
|
should be in the conf directory under the solr home
|
21
|
-
(i.e. ./solr/conf/schema.xml by default)
|
21
|
+
(i.e. ./solr/conf/schema.xml by default)
|
22
22
|
or located where the classloader for the Solr webapp can find it.
|
23
23
|
|
24
24
|
This example schema is the recommended starting point for users.
|
@@ -84,8 +84,22 @@
|
|
84
84
|
<!-- *** This fieldType is used by Sunspot! *** -->
|
85
85
|
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
|
86
86
|
<!-- *** This fieldType is used by Sunspot! *** -->
|
87
|
-
<fieldType name="tdate" class="solr.TrieDateField"
|
87
|
+
<fieldType name="tdate" class="solr.TrieDateField"
|
88
|
+
omitNorms="true"/>
|
88
89
|
|
90
|
+
<!-- Special field type for spell correction. Be careful about
|
91
|
+
adding filters here, as they apply *before* your values go in
|
92
|
+
the spellcheck. For example, the lowercase filter here means
|
93
|
+
all spelling suggestions will be lower case (without it,
|
94
|
+
though, you'd have duplicate suggestions for lower and proper
|
95
|
+
cased words). -->
|
96
|
+
<fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" omitNorms="true">
|
97
|
+
<analyzer>
|
98
|
+
<tokenizer class="solr.StandardTokenizerFactory"/>
|
99
|
+
<filter class="solr.StandardFilterFactory"/>
|
100
|
+
<filter class="solr.LowerCaseFilterFactory"/>
|
101
|
+
</analyzer>
|
102
|
+
</fieldType>
|
89
103
|
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
|
90
104
|
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
|
91
105
|
</types>
|
@@ -108,9 +122,9 @@
|
|
108
122
|
given field.
|
109
123
|
When using MoreLikeThis, fields used for similarity should be
|
110
124
|
stored for best performance.
|
111
|
-
termPositions: Store position information with the term vector.
|
125
|
+
termPositions: Store position information with the term vector.
|
112
126
|
This will increase storage costs.
|
113
|
-
termOffsets: Store offset information with the term vector. This
|
127
|
+
termOffsets: Store offset information with the term vector. This
|
114
128
|
will increase storage costs.
|
115
129
|
default: a value that should be used if no value is specified
|
116
130
|
when adding a document.
|
@@ -236,11 +250,11 @@
|
|
236
250
|
<dynamicField name="*_llm" stored="false" type="location" multiValued="true" indexed="true"/>
|
237
251
|
<dynamicField name="*_lls" stored="true" type="location" multiValued="false" indexed="true"/>
|
238
252
|
<dynamicField name="*_llms" stored="true" type="location" multiValued="true" indexed="true"/>
|
239
|
-
|
253
|
+
<field name="textSpell" stored="false" type="textSpell" multiValued="true" indexed="true"/>
|
240
254
|
<!-- required by Solr 4 -->
|
241
255
|
<field name="_version_" type="string" indexed="true" stored="true" multiValued="false" />
|
242
256
|
</fields>
|
243
|
-
|
257
|
+
|
244
258
|
<!-- Field to use to determine and enforce document uniqueness.
|
245
259
|
Unless this field is marked with required="false", it will be a required field
|
246
260
|
-->
|
@@ -251,5 +265,11 @@
|
|
251
265
|
<solrQueryParser defaultOperator="AND"/>
|
252
266
|
<!-- copyField commands copy one field to another at the time a document
|
253
267
|
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
|
268
|
+
or to add multiple fields to the same field for easier/faster
|
269
|
+
searching. -->
|
270
|
+
|
271
|
+
<!-- Use copyField to copy the fields you want to run spell checking
|
272
|
+
on into one field. For example: -->
|
273
|
+
<copyField source="*_text" dest="textSpell" />
|
274
|
+
<copyField source="*_s" dest="textSpell" />
|
255
275
|
</schema>
|
@@ -16,9 +16,9 @@
|
|
16
16
|
limitations under the License.
|
17
17
|
-->
|
18
18
|
|
19
|
-
<!--
|
19
|
+
<!--
|
20
20
|
For more details about configurations options that may appear in
|
21
|
-
this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
21
|
+
this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
22
22
|
-->
|
23
23
|
<config>
|
24
24
|
<!-- In all configuration below, a prefix of "solr." for class names
|
@@ -46,22 +46,22 @@
|
|
46
46
|
instanceDir.
|
47
47
|
|
48
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"
|
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
52
|
dependency jars should be loaded first.
|
53
53
|
|
54
54
|
If a "./lib" directory exists in your instanceDir, all files
|
55
55
|
found in it are included as if you had used the following
|
56
56
|
syntax...
|
57
|
-
|
57
|
+
|
58
58
|
<lib dir="./lib" />
|
59
59
|
-->
|
60
60
|
<dataDir>${solr.data.dir:}</dataDir>
|
61
61
|
|
62
62
|
|
63
63
|
<!-- The DirectoryFactory to use for indexes.
|
64
|
-
|
64
|
+
|
65
65
|
solr.StandardDirectoryFactory is filesystem
|
66
66
|
based and tries to pick the best implementation for the current
|
67
67
|
JVM and platform. solr.NRTCachingDirectoryFactory, the default,
|
@@ -74,19 +74,19 @@
|
|
74
74
|
solr.RAMDirectoryFactory is memory based, not
|
75
75
|
persistent, and doesn't work with replication.
|
76
76
|
-->
|
77
|
-
<directoryFactory name="DirectoryFactory"
|
78
|
-
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
|
77
|
+
<directoryFactory name="DirectoryFactory"
|
78
|
+
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
|
79
79
|
|
80
80
|
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
81
81
|
Index Config - These settings control low-level behavior of indexing
|
82
82
|
Most example settings here show the default value, but are commented
|
83
83
|
out, to more easily see where customizations have been made.
|
84
|
-
|
84
|
+
|
85
85
|
Note: This replaces <indexDefaults> and <mainIndex> from older versions
|
86
86
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
87
87
|
<indexConfig>
|
88
|
-
<!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
|
89
|
-
LimitTokenCountFilterFactory in your fieldType definition. E.g.
|
88
|
+
<!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
|
89
|
+
LimitTokenCountFilterFactory in your fieldType definition. E.g.
|
90
90
|
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
|
91
91
|
-->
|
92
92
|
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
|
@@ -96,7 +96,7 @@
|
|
96
96
|
indexing documents at once in IndexWriter; if more than this
|
97
97
|
many threads arrive they will wait for others to finish.
|
98
98
|
Default in Solr/Lucene is 8. -->
|
99
|
-
<maxIndexingThreads>2</maxIndexingThreads>
|
99
|
+
<maxIndexingThreads>2</maxIndexingThreads>
|
100
100
|
|
101
101
|
<useCompoundFile>true</useCompoundFile>
|
102
102
|
|
@@ -110,7 +110,7 @@
|
|
110
110
|
<ramBufferSizeMB>20</ramBufferSizeMB> -->
|
111
111
|
<maxBufferedDocs>10000</maxBufferedDocs>
|
112
112
|
|
113
|
-
<!-- Expert: Merge Policy
|
113
|
+
<!-- Expert: Merge Policy
|
114
114
|
The Merge Policy in Lucene controls how merging of segments is done.
|
115
115
|
The default since Solr/Lucene 3.3 is TieredMergePolicy.
|
116
116
|
The default since Lucene 2.3 was the LogByteSizeMergePolicy,
|
@@ -120,9 +120,9 @@
|
|
120
120
|
<int name="maxMergeAtOnce">4</int>
|
121
121
|
<int name="segmentsPerTier">4</int>
|
122
122
|
</mergePolicy>
|
123
|
-
|
123
|
+
|
124
124
|
<unlockOnStartup>true</unlockOnStartup>
|
125
|
-
|
125
|
+
|
126
126
|
</indexConfig>
|
127
127
|
|
128
128
|
<updateHandler class="solr.DirectUpdateHandler2">
|
@@ -132,18 +132,18 @@
|
|
132
132
|
uncommitted changes to the index, so use of a hard autoCommit
|
133
133
|
is recommended (see below).
|
134
134
|
"dir" - the target directory for transaction logs, defaults to the
|
135
|
-
solr data directory. -->
|
135
|
+
solr data directory. -->
|
136
136
|
<updateLog>
|
137
137
|
<str name="dir">${solr.ulog.dir:}</str>
|
138
138
|
</updateLog>
|
139
139
|
|
140
|
-
<autoCommit>
|
141
|
-
<maxTime>15000</maxTime>
|
142
|
-
<openSearcher>false</openSearcher>
|
140
|
+
<autoCommit>
|
141
|
+
<maxTime>15000</maxTime>
|
142
|
+
<openSearcher>false</openSearcher>
|
143
143
|
</autoCommit>
|
144
144
|
|
145
|
-
<autoSoftCommit>
|
146
|
-
<maxTime>5000</maxTime>
|
145
|
+
<autoSoftCommit>
|
146
|
+
<maxTime>5000</maxTime>
|
147
147
|
</autoSoftCommit>
|
148
148
|
</updateHandler>
|
149
149
|
|
@@ -155,7 +155,7 @@
|
|
155
155
|
|
156
156
|
There are two implementations of cache available for Solr,
|
157
157
|
LRUCache, based on a synchronized LinkedHashMap, and
|
158
|
-
FastLRUCache, based on a ConcurrentHashMap.
|
158
|
+
FastLRUCache, based on a ConcurrentHashMap.
|
159
159
|
|
160
160
|
FastLRUCache has faster gets and slower puts in single
|
161
161
|
threaded operation and thus is generally faster than LRUCache
|
@@ -180,7 +180,7 @@
|
|
180
180
|
initialSize - the initial capacity (number of entries) of
|
181
181
|
the cache. (see java.util.HashMap)
|
182
182
|
autowarmCount - the number of entries to prepopulate from
|
183
|
-
and old cache.
|
183
|
+
and old cache.
|
184
184
|
-->
|
185
185
|
<filterCache class="solr.FastLRUCache"
|
186
186
|
size="512"
|
@@ -188,20 +188,20 @@
|
|
188
188
|
autowarmCount="0"/>
|
189
189
|
|
190
190
|
<!-- Query Result Cache
|
191
|
-
|
191
|
+
|
192
192
|
Caches results of searches - ordered lists of document ids
|
193
|
-
(DocList) based on a query, a sort, and the range of documents requested.
|
193
|
+
(DocList) based on a query, a sort, and the range of documents requested.
|
194
194
|
-->
|
195
195
|
<queryResultCache class="solr.LRUCache"
|
196
196
|
size="512"
|
197
197
|
initialSize="512"
|
198
198
|
autowarmCount="0"/>
|
199
|
-
|
199
|
+
|
200
200
|
<!-- Document Cache
|
201
201
|
|
202
202
|
Caches Lucene Document objects (the stored fields for each
|
203
203
|
document). Since Lucene internal document ids are transient,
|
204
|
-
this cache will not be autowarmed.
|
204
|
+
this cache will not be autowarmed.
|
205
205
|
-->
|
206
206
|
<documentCache class="solr.LRUCache"
|
207
207
|
size="512"
|
@@ -242,12 +242,12 @@
|
|
242
242
|
are collected. For example, if a search for a particular query
|
243
243
|
requests matching documents 10 through 19, and queryWindowSize is 50,
|
244
244
|
then documents 0 through 49 will be collected and cached. Any further
|
245
|
-
requests in that range can be satisfied via the cache.
|
245
|
+
requests in that range can be satisfied via the cache.
|
246
246
|
-->
|
247
247
|
<queryResultWindowSize>20</queryResultWindowSize>
|
248
248
|
|
249
249
|
<!-- Maximum number of documents to cache for any entry in the
|
250
|
-
queryResultCache.
|
250
|
+
queryResultCache.
|
251
251
|
-->
|
252
252
|
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
|
253
253
|
|
@@ -265,7 +265,7 @@
|
|
265
265
|
prepared but there is no current registered searcher to handle
|
266
266
|
requests or to gain autowarming data from.
|
267
267
|
|
268
|
-
|
268
|
+
|
269
269
|
-->
|
270
270
|
|
271
271
|
<!-- Use Cold Searcher
|
@@ -278,7 +278,7 @@
|
|
278
278
|
<useColdSearcher>false</useColdSearcher>
|
279
279
|
|
280
280
|
<!-- Max Warming Searchers
|
281
|
-
|
281
|
+
|
282
282
|
Maximum number of searchers that may be warming in the
|
283
283
|
background concurrently. An error is returned if this limit
|
284
284
|
is exceeded.
|
@@ -300,7 +300,7 @@
|
|
300
300
|
such as /select?qt=XXX
|
301
301
|
|
302
302
|
handleSelect="true" will cause the SolrDispatchFilter to process
|
303
|
-
the request and dispatch the query to a handler specified by the
|
303
|
+
the request and dispatch the query to a handler specified by the
|
304
304
|
"qt" param, assuming "/select" isn't already registered.
|
305
305
|
|
306
306
|
handleSelect="false" will cause the SolrDispatchFilter to
|
@@ -322,18 +322,18 @@
|
|
322
322
|
|
323
323
|
multipartUploadLimitInKB - specifies the max size (in KiB) of
|
324
324
|
Multipart File Uploads that Solr will allow in a Request.
|
325
|
-
|
325
|
+
|
326
326
|
formdataUploadLimitInKB - specifies the max size (in KiB) of
|
327
327
|
form data (application/x-www-form-urlencoded) sent via
|
328
328
|
POST. You can use POST to pass request parameters not
|
329
329
|
fitting into the URL.
|
330
|
-
|
330
|
+
|
331
331
|
*** WARNING ***
|
332
332
|
The settings below authorize Solr to fetch remote files, You
|
333
333
|
should make sure your system has some authentication before
|
334
334
|
using enableRemoteStreaming="true"
|
335
335
|
|
336
|
-
-->
|
336
|
+
-->
|
337
337
|
|
338
338
|
<!-- HTTP Caching
|
339
339
|
|
@@ -346,21 +346,21 @@
|
|
346
346
|
<!-- If you include a <cacheControl> directive, it will be used to
|
347
347
|
generate a Cache-Control header (as well as an Expires header
|
348
348
|
if the value contains "max-age=")
|
349
|
-
|
349
|
+
|
350
350
|
By default, no Cache-Control header is generated.
|
351
|
-
|
351
|
+
|
352
352
|
You can use the <cacheControl> option even if you have set
|
353
353
|
never304="true"
|
354
354
|
-->
|
355
355
|
<!--
|
356
356
|
<httpCaching never304="true" >
|
357
|
-
<cacheControl>max-age=30, public</cacheControl>
|
357
|
+
<cacheControl>max-age=30, public</cacheControl>
|
358
358
|
</httpCaching>
|
359
359
|
-->
|
360
360
|
<!-- To enable Solr to respond with automatically generated HTTP
|
361
361
|
Caching headers, and to response to Cache Validation requests
|
362
362
|
correctly, set the value of never304="false"
|
363
|
-
|
363
|
+
|
364
364
|
This will cause Solr to generate Last-Modified and ETag
|
365
365
|
headers based on the properties of the Index.
|
366
366
|
|
@@ -385,12 +385,12 @@
|
|
385
385
|
<!--
|
386
386
|
<httpCaching lastModifiedFrom="openTime"
|
387
387
|
etagSeed="Solr">
|
388
|
-
<cacheControl>max-age=30, public</cacheControl>
|
388
|
+
<cacheControl>max-age=30, public</cacheControl>
|
389
389
|
</httpCaching>
|
390
390
|
-->
|
391
391
|
</requestDispatcher>
|
392
392
|
|
393
|
-
<!-- Request Handlers
|
393
|
+
<!-- Request Handlers
|
394
394
|
|
395
395
|
http://wiki.apache.org/solr/SolrRequestHandler
|
396
396
|
|
@@ -419,6 +419,11 @@
|
|
419
419
|
queries across multiple shards
|
420
420
|
-->
|
421
421
|
<requestHandler name="/select" class="solr.SearchHandler">
|
422
|
+
<lst name="defaults">
|
423
|
+
<str name="spellcheck.dictionary">default</str>
|
424
|
+
<str name="spellcheck.extendedResults">true</str>
|
425
|
+
<str name="spellcheck.collate">true</str>
|
426
|
+
</lst>
|
422
427
|
<arr name="last-components">
|
423
428
|
<str>spellcheck</str>
|
424
429
|
</arr>
|
@@ -434,7 +439,7 @@
|
|
434
439
|
</lst>
|
435
440
|
<arr name="last-components">
|
436
441
|
<str>spellcheck</str>
|
437
|
-
</arr>
|
442
|
+
</arr>
|
438
443
|
</requestHandler>
|
439
444
|
|
440
445
|
|
@@ -464,7 +469,7 @@
|
|
464
469
|
</lst>
|
465
470
|
</requestHandler>
|
466
471
|
|
467
|
-
<requestHandler name="/update/extract"
|
472
|
+
<requestHandler name="/update/extract"
|
468
473
|
startup="lazy"
|
469
474
|
class="solr.extraction.ExtractingRequestHandler" >
|
470
475
|
<lst name="defaults">
|
@@ -478,12 +483,12 @@
|
|
478
483
|
</lst>
|
479
484
|
</requestHandler>
|
480
485
|
|
481
|
-
<requestHandler name="/analysis/field"
|
486
|
+
<requestHandler name="/analysis/field"
|
482
487
|
startup="lazy"
|
483
488
|
class="solr.FieldAnalysisRequestHandler" />
|
484
489
|
|
485
|
-
<requestHandler name="/analysis/document"
|
486
|
-
class="solr.DocumentAnalysisRequestHandler"
|
490
|
+
<requestHandler name="/analysis/document"
|
491
|
+
class="solr.DocumentAnalysisRequestHandler"
|
487
492
|
startup="lazy" />
|
488
493
|
|
489
494
|
<!-- ping/healthcheck -->
|
@@ -498,12 +503,12 @@
|
|
498
503
|
|
499
504
|
<requestHandler name="/debug/dump" class="solr.DumpRequestHandler" >
|
500
505
|
<lst name="defaults">
|
501
|
-
<str name="echoParams">explicit</str>
|
506
|
+
<str name="echoParams">explicit</str>
|
502
507
|
<str name="echoHandler">true</str>
|
503
508
|
</lst>
|
504
509
|
</requestHandler>
|
505
510
|
|
506
|
-
<requestHandler name="/replication" class="solr.ReplicationHandler" >
|
511
|
+
<requestHandler name="/replication" class="solr.ReplicationHandler" >
|
507
512
|
</requestHandler>
|
508
513
|
|
509
514
|
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
@@ -513,11 +518,18 @@
|
|
513
518
|
<!-- Multiple "Spell Checkers" can be declared and used by this
|
514
519
|
component
|
515
520
|
-->
|
516
|
-
|
517
|
-
<!-- a spellchecker built from a field of the main index -->
|
518
521
|
<lst name="spellchecker">
|
519
522
|
<str name="name">default</str>
|
520
|
-
|
523
|
+
<!-- change field to textSpell and use copyField in schema.xml
|
524
|
+
to spellcheck multiple fields -->
|
525
|
+
<str name="field">textSpell</str>
|
526
|
+
<str name="buildOnCommit">true</str>
|
527
|
+
</lst>
|
528
|
+
|
529
|
+
<lst name="spellchecker">
|
530
|
+
<str name="name">example</str>
|
531
|
+
<str name="field">title_text</str>
|
532
|
+
<str name="buildOnCommit">true</str>
|
521
533
|
<str name="classname">solr.DirectSolrSpellChecker</str>
|
522
534
|
<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
|
523
535
|
<str name="distanceMeasure">internal</str>
|
@@ -534,19 +546,20 @@
|
|
534
546
|
<!-- maximum threshold of documents a query term can appear to be considered for correction -->
|
535
547
|
<float name="maxQueryFrequency">0.01</float>
|
536
548
|
<!-- uncomment this to require suggestions to occur in 1% of the documents
|
537
|
-
|
549
|
+
<float name="thresholdTokenFrequency">.01</float>
|
538
550
|
-->
|
539
551
|
</lst>
|
540
|
-
|
552
|
+
|
541
553
|
<!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
|
542
554
|
<lst name="spellchecker">
|
543
555
|
<str name="name">wordbreak</str>
|
544
|
-
<str name="classname">solr.WordBreakSolrSpellChecker</str>
|
556
|
+
<str name="classname">solr.WordBreakSolrSpellChecker</str>
|
545
557
|
<str name="field">name</str>
|
546
558
|
<str name="combineWords">true</str>
|
547
559
|
<str name="breakWords">true</str>
|
548
560
|
<int name="maxChanges">10</int>
|
549
561
|
</lst>
|
562
|
+
-->
|
550
563
|
</searchComponent>
|
551
564
|
|
552
565
|
<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
|
@@ -557,7 +570,7 @@
|
|
557
570
|
<highlighting>
|
558
571
|
<!-- Configure the standard fragmenter -->
|
559
572
|
<!-- This could most likely be commented out in the "default" case -->
|
560
|
-
<fragmenter name="gap"
|
573
|
+
<fragmenter name="gap"
|
561
574
|
default="true"
|
562
575
|
class="solr.highlight.GapFragmenter">
|
563
576
|
<lst name="defaults">
|
@@ -565,10 +578,10 @@
|
|
565
578
|
</lst>
|
566
579
|
</fragmenter>
|
567
580
|
|
568
|
-
<!-- A regular-expression-based fragmenter
|
569
|
-
(for sentence extraction)
|
581
|
+
<!-- A regular-expression-based fragmenter
|
582
|
+
(for sentence extraction)
|
570
583
|
-->
|
571
|
-
<fragmenter name="regex"
|
584
|
+
<fragmenter name="regex"
|
572
585
|
class="solr.highlight.RegexFragmenter">
|
573
586
|
<lst name="defaults">
|
574
587
|
<!-- slightly smaller fragsizes work better because of slop -->
|
@@ -581,7 +594,7 @@
|
|
581
594
|
</fragmenter>
|
582
595
|
|
583
596
|
<!-- Configure the standard formatter -->
|
584
|
-
<formatter name="html"
|
597
|
+
<formatter name="html"
|
585
598
|
default="true"
|
586
599
|
class="solr.highlight.HtmlFormatter">
|
587
600
|
<lst name="defaults">
|
@@ -591,27 +604,27 @@
|
|
591
604
|
</formatter>
|
592
605
|
|
593
606
|
<!-- Configure the standard encoder -->
|
594
|
-
<encoder name="html"
|
607
|
+
<encoder name="html"
|
595
608
|
class="solr.highlight.HtmlEncoder" />
|
596
609
|
|
597
610
|
<!-- Configure the standard fragListBuilder -->
|
598
|
-
<fragListBuilder name="simple"
|
611
|
+
<fragListBuilder name="simple"
|
599
612
|
class="solr.highlight.SimpleFragListBuilder"/>
|
600
|
-
|
613
|
+
|
601
614
|
<!-- Configure the single fragListBuilder -->
|
602
|
-
<fragListBuilder name="single"
|
615
|
+
<fragListBuilder name="single"
|
603
616
|
class="solr.highlight.SingleFragListBuilder"/>
|
604
|
-
|
617
|
+
|
605
618
|
<!-- Configure the weighted fragListBuilder -->
|
606
|
-
<fragListBuilder name="weighted"
|
619
|
+
<fragListBuilder name="weighted"
|
607
620
|
default="true"
|
608
621
|
class="solr.highlight.WeightedFragListBuilder"/>
|
609
|
-
|
622
|
+
|
610
623
|
<!-- default tag FragmentsBuilder -->
|
611
|
-
<fragmentsBuilder name="default"
|
624
|
+
<fragmentsBuilder name="default"
|
612
625
|
default="true"
|
613
626
|
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
614
|
-
<!--
|
627
|
+
<!--
|
615
628
|
<lst name="defaults">
|
616
629
|
<str name="hl.multiValuedSeparatorChar">/</str>
|
617
630
|
</lst>
|
@@ -619,7 +632,7 @@
|
|
619
632
|
</fragmentsBuilder>
|
620
633
|
|
621
634
|
<!-- multi-colored tag FragmentsBuilder -->
|
622
|
-
<fragmentsBuilder name="colored"
|
635
|
+
<fragmentsBuilder name="colored"
|
623
636
|
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
624
637
|
<lst name="defaults">
|
625
638
|
<str name="hl.tag.pre"><![CDATA[
|
@@ -631,8 +644,8 @@
|
|
631
644
|
<str name="hl.tag.post"><![CDATA[</b>]]></str>
|
632
645
|
</lst>
|
633
646
|
</fragmentsBuilder>
|
634
|
-
|
635
|
-
<boundaryScanner name="default"
|
647
|
+
|
648
|
+
<boundaryScanner name="default"
|
636
649
|
default="true"
|
637
650
|
class="solr.highlight.SimpleBoundaryScanner">
|
638
651
|
<lst name="defaults">
|
@@ -640,8 +653,8 @@
|
|
640
653
|
<str name="hl.bs.chars">.,!? 	 </str>
|
641
654
|
</lst>
|
642
655
|
</boundaryScanner>
|
643
|
-
|
644
|
-
<boundaryScanner name="breakIterator"
|
656
|
+
|
657
|
+
<boundaryScanner name="breakIterator"
|
645
658
|
class="solr.highlight.BreakIteratorBoundaryScanner">
|
646
659
|
<lst name="defaults">
|
647
660
|
<!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
|
@@ -654,14 +667,14 @@
|
|
654
667
|
</boundaryScanner>
|
655
668
|
</highlighting>
|
656
669
|
</searchComponent>
|
657
|
-
|
670
|
+
|
658
671
|
<requestHandler class="solr.MoreLikeThisHandler" name="/mlt">
|
659
672
|
<lst name="defaults">
|
660
673
|
<str name="mlt.mintf">1</str>
|
661
674
|
<str name="mlt.mindf">2</str>
|
662
675
|
</lst>
|
663
676
|
</requestHandler>
|
664
|
-
|
677
|
+
|
665
678
|
<!-- Admin Handlers - This will register all the standard admin RequestHandlers. -->
|
666
679
|
<requestHandler name="/admin/" class="solr.admin.AdminHandlers" />
|
667
680
|
</config>
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot_solr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Mat Brown
|
@@ -26,11 +27,12 @@ authors:
|
|
26
27
|
autorequire:
|
27
28
|
bindir: bin
|
28
29
|
cert_chain: []
|
29
|
-
date:
|
30
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
30
31
|
dependencies:
|
31
32
|
- !ruby/object:Gem::Dependency
|
32
33
|
name: rspec
|
33
34
|
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
34
36
|
requirements:
|
35
37
|
- - "~>"
|
36
38
|
- !ruby/object:Gem::Version
|
@@ -38,6 +40,7 @@ dependencies:
|
|
38
40
|
type: :development
|
39
41
|
prerelease: false
|
40
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
41
44
|
requirements:
|
42
45
|
- - "~>"
|
43
46
|
- !ruby/object:Gem::Version
|
@@ -45,6 +48,7 @@ dependencies:
|
|
45
48
|
- !ruby/object:Gem::Dependency
|
46
49
|
name: hanna
|
47
50
|
requirement: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
48
52
|
requirements:
|
49
53
|
- - ">="
|
50
54
|
- !ruby/object:Gem::Version
|
@@ -52,6 +56,7 @@ dependencies:
|
|
52
56
|
type: :development
|
53
57
|
prerelease: false
|
54
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
55
60
|
requirements:
|
56
61
|
- - ">="
|
57
62
|
- !ruby/object:Gem::Version
|
@@ -125,7 +130,6 @@ files:
|
|
125
130
|
homepage: https://github.com/outoftime/sunspot/tree/master/sunspot_solr
|
126
131
|
licenses:
|
127
132
|
- MIT
|
128
|
-
metadata: {}
|
129
133
|
post_install_message:
|
130
134
|
rdoc_options:
|
131
135
|
- "--webcvs=http://github.com/outoftime/sunspot/tree/master/%s"
|
@@ -136,20 +140,22 @@ rdoc_options:
|
|
136
140
|
require_paths:
|
137
141
|
- lib
|
138
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
139
144
|
requirements:
|
140
145
|
- - ">="
|
141
146
|
- !ruby/object:Gem::Version
|
142
147
|
version: '0'
|
143
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
144
150
|
requirements:
|
145
151
|
- - ">="
|
146
152
|
- !ruby/object:Gem::Version
|
147
153
|
version: '0'
|
148
154
|
requirements: []
|
149
155
|
rubyforge_project: sunspot
|
150
|
-
rubygems_version:
|
156
|
+
rubygems_version: 1.8.25
|
151
157
|
signing_key:
|
152
|
-
specification_version:
|
158
|
+
specification_version: 3
|
153
159
|
summary: Bundled Solr distribution for Sunspot
|
154
160
|
test_files:
|
155
161
|
- spec/server_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 53b055ef533243d56a2f670eb7643bbb82f3f033
|
4
|
-
data.tar.gz: c20d9eed7d364db48933405efa47dc4e9a334e95
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: fed1ab3dd72542db53fbfbc415ecd7094e9ba0ab3bb1b77fe43cdb6226780e2fe0457c6b6f70ebd632442fcd79e340e2f03deb4a9e0bcb8510066636b7f191fb
|
7
|
-
data.tar.gz: 70b905ed0bc45b5f2d9e6b23280563c1d18e9d6b47301e8ac69333f727c8cb33a80a9d7179074fd0846a92f10c54dfbb9a7f99480da22152b510762254df888a
|