xapian_db 1.3.7.2 → 1.3.7.3
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +164 -151
- data/lib/type_codec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 00b4e000aa0897921e61d84db5d9f6ab9dfc293e7d2ab827699875af46ba20a4
|
4
|
+
data.tar.gz: 822a1cf0e558724daf5a288c0f1c589554b1b8496d3da577ac7aa1b79088d0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da8b6dbda4bc7f8059216e86c00a377d53592913cc2f5d0106aacab978e123b971d9f357ef21ca0b2f8c9022963cd7250e877bbde5ec1d65460f40adbc66b06
|
7
|
+
data.tar.gz: c6b1db3a8e80e42523e9f08d8f2de0820148d7a228926f8a43f6694c886a468b27fe307c8a33f33a25919f4136409b4f4b511f5c4cd53802be8c32d3a2dcf13f
|
data/CHANGELOG.md
CHANGED
@@ -1,83 +1,95 @@
|
|
1
|
+
##1.3.7.3 (November 30th, 2018)
|
2
|
+
|
3
|
+
Changes:
|
4
|
+
|
5
|
+
- add support for ruby > 2.3.x
|
6
|
+
|
7
|
+
##1.3.7.2 (April 13th, 2018)
|
8
|
+
|
9
|
+
Changes:
|
10
|
+
|
11
|
+
- changed ownership
|
12
|
+
|
1
13
|
##1.3.7.1 (March 3rd, 2018)
|
2
14
|
|
3
15
|
Changes:
|
4
16
|
|
5
|
-
|
17
|
+
- Allow access to configured blueprints through XapianDb::DocumentBlueprint
|
6
18
|
|
7
19
|
##1.3.7 (January 12th, 2016)
|
8
20
|
|
9
21
|
Breaking Changes:
|
10
22
|
|
11
|
-
|
23
|
+
- search methods accept either a limit option OR page / per_page options, not both
|
12
24
|
|
13
25
|
Fixes:
|
14
26
|
|
15
|
-
|
27
|
+
- `XapianDb.database.delete_docs_of_class(klass)` now deletes docs of all descendants of `klass`, too (if tracked)
|
16
28
|
|
17
29
|
Changes:
|
18
30
|
|
19
|
-
|
20
|
-
|
21
|
-
|
31
|
+
- Ability to declare dependenices between blueprints
|
32
|
+
- Support for result ordering
|
33
|
+
- added a indexer preprocess callback to manipulate the terms that the indexer will index
|
22
34
|
|
23
35
|
##1.3.6 (August 14th, 2015)
|
24
36
|
|
25
37
|
Changes:
|
26
38
|
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
- The required Ruby version is now 2.0.0 since we started using keyword parameters in method definitions
|
40
|
+
- Ability do define and handle dependencies between blueprints (see README)
|
41
|
+
- explicit order option for searches
|
30
42
|
|
31
43
|
##1.3.5.4 (Jan 13th, 2015)
|
32
44
|
|
33
45
|
Fixes:
|
34
46
|
|
35
|
-
|
36
|
-
|
47
|
+
- path to database fixed in railtie
|
48
|
+
- fix for xapian > 1.2.15
|
37
49
|
|
38
50
|
##1.3.5.3 (May 22th, 2014)
|
39
51
|
|
40
52
|
Fixes:
|
41
53
|
|
42
|
-
|
54
|
+
- retry the search when a Xapian::DatabaseModifiedError occurs
|
43
55
|
|
44
56
|
##1.3.5.2 (January 3rd, 2014)
|
45
57
|
|
46
58
|
Fixes:
|
47
59
|
|
48
|
-
|
49
|
-
|
60
|
+
- total_pages are calculated correctly when a limit option is passed (Thanks, Jan)
|
61
|
+
- fix for will_paginate support
|
50
62
|
|
51
63
|
##1.3.5.1 (August 16th, 2013)
|
52
64
|
|
53
65
|
Fixes:
|
54
66
|
|
55
|
-
|
67
|
+
- namespaced models work again with rails 4
|
56
68
|
|
57
69
|
##1.3.5 (August 3rd, 2013)
|
58
70
|
|
59
71
|
Changes:
|
60
72
|
|
61
|
-
|
62
|
-
|
73
|
+
- Rails4 deprecation resolved
|
74
|
+
- licence information added tot the gemspec
|
63
75
|
|
64
76
|
##1.3.4 (July 26th, 2013)
|
65
77
|
|
66
78
|
Changes:
|
67
79
|
|
68
|
-
|
80
|
+
- support for sidekiq queues
|
69
81
|
|
70
82
|
##1.3.3.1 (June 23th, 2013)
|
71
83
|
|
72
84
|
Fixes:
|
73
85
|
|
74
|
-
|
86
|
+
- injected logical operators must be upper case in order to support Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE set to false
|
75
87
|
|
76
88
|
##1.3.3 (June 23th, 2013)
|
77
89
|
|
78
90
|
Changes:
|
79
91
|
|
80
|
-
|
92
|
+
- xapian query parser flags are now configurable (see README)
|
81
93
|
|
82
94
|
Breaking Changes:
|
83
95
|
|
@@ -87,90 +99,91 @@ Breaking Changes:
|
|
87
99
|
|
88
100
|
Changes:
|
89
101
|
|
90
|
-
|
91
|
-
|
102
|
+
- new no_split option for attributes and indexes; useful if you use a global term_splitter_count but want to disable splitting for
|
103
|
+
a certain attribute
|
92
104
|
|
93
105
|
##1.3.1 (February 25th, 2013)
|
94
106
|
|
95
107
|
Fixes:
|
96
108
|
|
97
|
-
|
109
|
+
- json codec handles nil values gracefully
|
98
110
|
|
99
111
|
##1.3 (February 19th, 2013)
|
100
112
|
|
101
113
|
Breaking Changes:
|
102
|
-
|
103
|
-
|
114
|
+
|
115
|
+
- changed the internal serialization format for attributes; the new default is string, new codecs were added. YAML is not supported
|
116
|
+
anymore, although you could implement a YAML-Codec on your own if you need it (see examples/custom_serialization.rb)
|
104
117
|
|
105
118
|
Changes:
|
106
119
|
|
107
|
-
|
108
|
-
|
120
|
+
- New option to enable / disable phrase search support
|
121
|
+
- term splitter option to boost "live queries" (see README)
|
109
122
|
|
110
123
|
##1.2.5 (January 4th, 2013)
|
111
124
|
|
112
125
|
Changes:
|
113
126
|
|
114
|
-
|
115
|
-
|
127
|
+
- Define the min length a term must have to make it into the index (see README)
|
128
|
+
- define if a method should be indexed with its method name so you can do field searches (e.g. name:kogler); defaults to true
|
116
129
|
|
117
130
|
Fixes:
|
118
131
|
|
119
|
-
|
132
|
+
- query result creation optimized (lower memory footprint, better performance)
|
120
133
|
|
121
134
|
##1.2.4.7 (December 17th, 2012)
|
122
135
|
|
123
136
|
Fixes:
|
124
137
|
|
125
|
-
|
138
|
+
- database reset removed since it has concurrency problems
|
126
139
|
|
127
140
|
##1.2.4.6 (Decmber 17th, 2012)
|
128
141
|
|
129
142
|
Changes:
|
130
143
|
|
131
|
-
|
132
|
-
|
144
|
+
- progressbar gem replaced by ruby-progressbar
|
145
|
+
- XapianDb.rebuild_xapian_index resets the database to remove any stale index data
|
133
146
|
|
134
147
|
##1.2.4.5 (July 19th, 2012)
|
135
148
|
|
136
149
|
Fixes:
|
137
150
|
|
138
|
-
|
151
|
+
- Fixes requiring the environment when calling rake. Prevented eg creation of the database using rake db:create
|
139
152
|
|
140
153
|
##1.2.4.4 (May 30h, 2012)
|
141
154
|
|
142
155
|
Fixes:
|
143
156
|
|
144
|
-
|
157
|
+
- do not add attributes with null values to a document
|
145
158
|
|
146
159
|
##1.2.4.3 (May 1st, 2012)
|
147
160
|
|
148
161
|
Fixes:
|
149
162
|
|
150
|
-
|
163
|
+
- handle null values on date and datetime attributes correctly
|
151
164
|
|
152
165
|
##1.2.4.2 (May 1st, 2012)
|
153
166
|
|
154
167
|
Changes:
|
155
168
|
|
156
|
-
|
169
|
+
- access the attributes of a xapian document as a hash table (like active record)
|
157
170
|
|
158
171
|
##1.2.4.1 (April 5th, 2012)
|
159
172
|
|
160
173
|
Fixes:
|
161
174
|
|
162
|
-
|
175
|
+
- better indexing for attributes containing arrays (index rebuild recommended)
|
163
176
|
|
164
177
|
##1.2.4 (March 6th, 2012)
|
165
178
|
|
166
179
|
Features:
|
167
180
|
|
168
|
-
|
169
|
-
|
181
|
+
- Codec for DateTime objects added
|
182
|
+
- autoindex option for blueprints added
|
170
183
|
|
171
184
|
Fixes:
|
172
185
|
|
173
|
-
|
186
|
+
- the ActiveRecord after_commit hook must not reindex the object if it is a destroy action
|
174
187
|
|
175
188
|
##1.2.3 (December 12th, 2011)
|
176
189
|
|
@@ -195,16 +208,16 @@ Changes:
|
|
195
208
|
|
196
209
|
Fixes:
|
197
210
|
|
198
|
-
|
199
|
-
|
200
|
-
|
211
|
+
- always use the correct table name for order clauses when indexing
|
212
|
+
- allow nil values for attributes declared :as => :date
|
213
|
+
- lazy load queue writers (beanstalk_writer, resque_writer) when needed
|
201
214
|
|
202
215
|
##1.2.2 (November 15th, 2011)
|
203
216
|
|
204
217
|
Features:
|
205
218
|
|
206
|
-
|
207
|
-
|
219
|
+
- resultset accepts limit and paging options as strings
|
220
|
+
- added natural sort order option for blueprints (see README for details)
|
208
221
|
|
209
222
|
IMPORTANT: FULL INDEX REBUILD REQUIRED FOR THIS RELEASE!
|
210
223
|
|
@@ -212,73 +225,73 @@ IMPORTANT: FULL INDEX REBUILD REQUIRED FOR THIS RELEASE!
|
|
212
225
|
|
213
226
|
Fixes:
|
214
227
|
|
215
|
-
|
228
|
+
- resque writer wasn't loaded when beanstalk wasn't installed (thanks, javierv)
|
216
229
|
|
217
230
|
##1.2.1 (November 9th, 2011)
|
218
231
|
|
219
232
|
Fixes:
|
220
233
|
|
221
|
-
|
234
|
+
- removed explicit dependency on resque
|
222
235
|
|
223
236
|
##1.2.0 (November 8th, 2011)
|
224
237
|
|
225
238
|
Fixes:
|
226
239
|
|
227
|
-
|
240
|
+
- find_similar_to supports the :limit option
|
228
241
|
|
229
242
|
Features:
|
230
243
|
|
231
|
-
|
232
|
-
|
244
|
+
- new index worker / writer for resque (thanks, Michael)
|
245
|
+
- support for namespaced models (thanks, Albert)
|
233
246
|
|
234
247
|
##1.1.4 (October 25th, 2011)
|
235
248
|
|
236
249
|
Fixes:
|
237
250
|
|
238
|
-
|
251
|
+
- removed loading of the deprecated rake task from the railtie
|
239
252
|
|
240
253
|
##1.1.3 (October 24th, 2011)
|
241
254
|
|
242
255
|
Fixes:
|
243
256
|
|
244
|
-
|
257
|
+
- weight option for attributes and indexed values was not correctly applied
|
245
258
|
|
246
259
|
##1.1.2 (September 10th, 2011)
|
247
260
|
|
248
261
|
Fixes:
|
249
262
|
|
250
|
-
|
263
|
+
- beanstalk_work flushes log messages (reinstall the worker script: rails generate xapian_db:install)
|
251
264
|
|
252
265
|
Features:
|
253
266
|
|
254
|
-
|
267
|
+
- massive performance optimization in rebuild_xapian_index
|
255
268
|
|
256
269
|
##1.1.1 (September 9th, 2011)
|
257
270
|
|
258
271
|
Fixes:
|
259
272
|
|
260
|
-
|
273
|
+
- fixed a bug in XapianDb.rebuild_xapian_index that did not index all records of a klass; it ist highly recommended to run Xapian.rebuild_xapian_index after installing this version
|
261
274
|
|
262
275
|
Features:
|
263
276
|
|
264
|
-
|
277
|
+
- base query option for blueprints; may speed up reindexing signifiantly if you index associations
|
265
278
|
|
266
279
|
##1.1 (September 7th, 2011)
|
267
280
|
|
268
281
|
Fixes:
|
269
282
|
|
270
|
-
|
271
|
-
|
272
|
-
|
283
|
+
- better handling of the beanstalk-client dependency
|
284
|
+
- recreate the xapian index database if the configured path exists but does not contain a valid xapian index
|
285
|
+
- support for non-integer primary keys (removed unneccesary to_i conversion)
|
273
286
|
|
274
287
|
Features:
|
275
288
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
289
|
+
- rails sample app upgraded to 3.1
|
290
|
+
- support for value range queries (strings, dates, numbers)
|
291
|
+
- sorting now works on a global query, too (XapianDb.search...)
|
292
|
+
- global factes queries have now the same options like class scoped facet queries
|
293
|
+
- Support for custom serialization into xapian documents; overwrite the serialization implementation in type_codec.rb or implement your own serialization for specific types (see examples/custom_serialization.rb)
|
294
|
+
- support to reindex a single object while evaluation an ignore_if block (if present)
|
282
295
|
|
283
296
|
IMPORTANT: YOU MUST REBUILD YOUR XAPIAN INDEX DATABASE SINCE THE INDEX STRUCTURE HAS CHANGED!
|
284
297
|
|
@@ -286,189 +299,189 @@ IMPORTANT: YOU MUST REBUILD YOUR XAPIAN INDEX DATABASE SINCE THE INDEX STRUCTURE
|
|
286
299
|
|
287
300
|
Features:
|
288
301
|
|
289
|
-
|
302
|
+
- find similar documents based on one or more reference documents
|
290
303
|
|
291
304
|
##0.5.15 (July 8th, 2011)
|
292
305
|
|
293
306
|
Features:
|
294
307
|
|
295
|
-
|
308
|
+
- faster install if the new, dependent gem containig xapian (xapian-ruby) is already installed
|
296
309
|
|
297
310
|
##0.5.14 (July 7th, 2011)
|
298
311
|
|
299
312
|
Fixes:
|
300
313
|
|
301
|
-
|
314
|
+
- fixed an issue in the beanstalk worker (delete task could not retrieve the xapian id from an already deleted object)
|
302
315
|
|
303
316
|
##0.5.13 (June 20th, 2011)
|
304
317
|
|
305
318
|
Fixes:
|
306
319
|
|
307
|
-
|
320
|
+
- handle attribute objects that return nil from to_s
|
308
321
|
|
309
322
|
Features:
|
310
323
|
|
311
|
-
|
312
|
-
|
313
|
-
|
324
|
+
- updated the xapian source to 1.2.6
|
325
|
+
- xapian source and build artefacts are removed after successful install
|
326
|
+
- added support for namespaced classes
|
314
327
|
|
315
328
|
##0.5.12 (April 28th, 2011)
|
316
329
|
|
317
330
|
Fixes:
|
318
331
|
|
319
|
-
|
332
|
+
- avoid stale blueprint setups when an indexed class is reloaded
|
320
333
|
|
321
334
|
##0.5.11 (April 21st, 2011)
|
322
335
|
|
323
336
|
Features:
|
324
337
|
|
325
|
-
|
326
|
-
|
327
|
-
|
338
|
+
- XapianDb.search accepts all options supported by XapianDb::Database.search
|
339
|
+
- Rails log entries include query execution time
|
340
|
+
- small changes to the beanstalk worker error handling
|
328
341
|
|
329
342
|
##0.5.10 (April 6th, 2011)
|
330
343
|
|
331
344
|
Features:
|
332
345
|
|
333
|
-
|
334
|
-
|
335
|
-
|
346
|
+
- the beanstalk worker is now implemented as a daemon script (execute 'rails generate xapian_db:install' to install it)
|
347
|
+
- execute a block with auto indexing disabled (see 'Bulk inserts / updates / deletes' in teh README)
|
348
|
+
- updated the xapian source to version 1.2.5
|
336
349
|
|
337
350
|
##0.5.9 (March 25th, 2011)
|
338
351
|
|
339
352
|
Fixes:
|
340
353
|
|
341
|
-
|
354
|
+
- indexing was broken in 0.5.8
|
342
355
|
|
343
356
|
##0.5.8 (March 22th, 2011)
|
344
357
|
|
345
358
|
Fixes:
|
346
359
|
|
347
|
-
|
360
|
+
- automatic reindexing of a changed object now works when using beanstalk and the worker rake task
|
348
361
|
|
349
362
|
Features:
|
350
363
|
|
351
|
-
|
364
|
+
- support for transactions (see the README for details)
|
352
365
|
|
353
366
|
##0.5.7 (March 7th, 2011)
|
354
367
|
|
355
368
|
Fixes:
|
356
369
|
|
357
|
-
|
358
|
-
|
370
|
+
- limit_value on the resultset is calculated again when the resultset is empty (thanks, Javi)
|
371
|
+
- added an order by id for rebuild_xapian_index to ensure that limit and offset work as expected
|
359
372
|
|
360
373
|
Features:
|
361
374
|
|
362
|
-
|
375
|
+
- option to specify a specific adapter for a blueprint overriding the global configuration
|
363
376
|
|
364
377
|
##0.5.6 (February 28th, 2011)
|
365
378
|
|
366
379
|
Features:
|
367
380
|
|
368
|
-
|
369
|
-
|
370
|
-
|
381
|
+
- documents returned by a query have the new score property that reflects the match relevance in percent (1-100%)
|
382
|
+
- added compatibility to the kaminari pagination gem (thanks, Javi)
|
383
|
+
- added support for phrase searches (XapianDb.search('"this exact sentence"'))
|
371
384
|
|
372
385
|
##0.5.5 (February 25th, 2011)
|
373
386
|
|
374
387
|
Fixes:
|
375
388
|
|
376
|
-
|
377
|
-
|
389
|
+
- ":memory:" as a configuration option for a database works again (was broken in 0.5.4)
|
390
|
+
- forcing utf-8 encoding on a spelling suggestion returned by the xapian query parser
|
378
391
|
|
379
392
|
Features:
|
380
393
|
|
381
|
-
|
382
|
-
|
394
|
+
- configure only those environments in xapian_db.yml where you want to override the defaults
|
395
|
+
- XapianDb.rebuild_xapian_index rebuilds the index for all blueprints
|
383
396
|
|
384
397
|
##0.5.4 (February 22nd, 2011)
|
385
398
|
|
386
399
|
Fixes:
|
387
400
|
|
388
|
-
|
401
|
+
- relative database paths in the config file are resolved correctly when the Rails server is started as a daemon (-d)
|
389
402
|
|
390
403
|
Breaking Changes:
|
391
404
|
|
392
|
-
|
393
|
-
|
394
|
-
|
405
|
+
- the spelling suggestion of a query is now nil instead of an empty string if no suggestions were returned from xapian
|
406
|
+
- the resultset class (what you get back from a query) has been refactored for easier handling. See the README ("Process the results")
|
407
|
+
for details
|
395
408
|
|
396
409
|
##0.5.3 (February 15th, 2011)
|
397
410
|
|
398
411
|
Fixes:
|
399
412
|
|
400
|
-
|
401
|
-
|
402
|
-
|
413
|
+
- index blueprints can now handle inheritance. If a class does not have its own index blueprint,
|
414
|
+
xapian_db uses the index blueprint from its super class (if defined)
|
415
|
+
- Added an ignore option to the blueprint definition to filter out objects that should not go into the index
|
403
416
|
|
404
417
|
##0.5.2 (January 11th, 2011)
|
405
418
|
|
406
419
|
Features:
|
407
420
|
|
408
|
-
|
421
|
+
- xapian-core and xapian-ruby-bindings sources are now included and will be compiled and installed with the gem
|
409
422
|
|
410
423
|
##0.5.1 (December 22th, 2010)
|
411
424
|
|
412
425
|
Features:
|
413
426
|
|
414
|
-
|
427
|
+
- simple facet support for indexed classes. Any attribute can be used in a facet search
|
415
428
|
|
416
429
|
Fixes:
|
417
430
|
|
418
|
-
|
431
|
+
- attribute names that match a Xapian::Document method are not allowed
|
419
432
|
|
420
433
|
##0.5.0 (December 19th, 2010)
|
421
434
|
|
422
435
|
Features:
|
423
436
|
|
424
|
-
|
425
|
-
|
437
|
+
- beanstalk based index writer for production environments (multiple app instances, e.g. mongrel clusters,
|
438
|
+
passenger...)
|
426
439
|
|
427
440
|
##0.4.2 (December 17th, 2010)
|
428
441
|
|
429
442
|
Features:
|
430
443
|
|
431
|
-
|
432
|
-
|
444
|
+
- added a sample rails application to the repo
|
445
|
+
- added the id attribute for documents based on ActiveRecord and Datamapper objects
|
433
446
|
|
434
447
|
Changes:
|
435
448
|
|
436
|
-
|
437
|
-
|
449
|
+
- removed the language_method option from the blueprint configuration since it gives
|
450
|
+
unpredictable results
|
438
451
|
|
439
452
|
Bugfixes:
|
440
453
|
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
454
|
+
- fixed the initialization error in a Rails app if there is no xapian_db.yml config file
|
455
|
+
- fixed the fallback to the global language when a model has an unsupported language and a
|
456
|
+
language method is configured in the blueprint
|
457
|
+
- fixed an issue with yaml deserialization of ActiveRecord objects (only the attributes hash
|
458
|
+
should be serialized)
|
446
459
|
|
447
460
|
##0.4.1 (December 16th, 2010)
|
448
461
|
|
449
462
|
Bugfixes:
|
450
463
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
464
|
+
- fixed the handling of invalid page arguments in resultset.paginate. Invalid page arguments return
|
465
|
+
an empty result set
|
466
|
+
- searches with an empty search expression do not raise an exception anymore and return an empty
|
467
|
+
resultset
|
455
468
|
|
456
469
|
##0.4.0 (December 15th, 2010)
|
457
470
|
|
458
471
|
Features:
|
459
472
|
|
460
|
-
|
461
|
-
|
462
|
-
|
473
|
+
- Simple facets implementation. The only facet supported is the class name of the indexed objects
|
474
|
+
- Support for sorting (only for class searches, not for global searches)
|
475
|
+
- The result of a search can be used with will_paginate
|
463
476
|
|
464
477
|
Bugfixes:
|
465
478
|
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
479
|
+
- removed the class scope expression from the spelling suggestion when searching on a class
|
480
|
+
- keys of the attributes and index hashes are now sorted to be compatible with ruby 1.8 (which does
|
481
|
+
not preserve the order of the keys in a hash)
|
482
|
+
- Fixed the problem that blueprint configurations got lost after the first request in the development
|
483
|
+
env (Rails only). You should put your blueprints either into a class that is loaded by Rails or into
|
484
|
+
the file config/xapian_blueprints.rb wich is loaded automatically by XapianDb
|
472
485
|
|
473
486
|
**Since the internal structure of the index has changed, you must reindex your objects if you come from an
|
474
487
|
earlier version of XapianDb!**
|
@@ -477,61 +490,61 @@ earlier version of XapianDb!**
|
|
477
490
|
|
478
491
|
Features:
|
479
492
|
|
480
|
-
|
481
|
-
|
482
|
-
|
493
|
+
- perform searches on indexed classes to scope the search to objects of a specific class
|
494
|
+
- specify multiple blueprint attributes and index methods in one statement (without specifying options)
|
495
|
+
- use blocks for complex attribute or index specifications
|
483
496
|
|
484
497
|
Changes:
|
485
498
|
|
486
|
-
|
487
|
-
|
488
|
-
|
499
|
+
- changed the implementation of Resultset.size to get more accurate estimations
|
500
|
+
- changed the indexing of active_record or datamapper models when declared as attributes or indexes
|
501
|
+
in a blueprint (indexes now all attributes of the object instead of using to_s)
|
489
502
|
|
490
503
|
##0.3.3 (December 13th, 2010)
|
491
504
|
|
492
505
|
Features:
|
493
506
|
|
494
|
-
|
495
|
-
|
496
|
-
|
507
|
+
- Support for multi language stop words. The implementation was inspired by John Leachs xapian-fu gem
|
508
|
+
- Support for query spelling correction (similar to Google's 'did you mean...'). This feature is only
|
509
|
+
available for persistent databases (due to a limitation of Xapian)
|
497
510
|
|
498
511
|
Changes:
|
499
512
|
|
500
|
-
|
501
|
-
|
502
|
-
|
513
|
+
- Languages must be configured by the iso language code (:en, :de, ...). No more support for the english
|
514
|
+
language names (:english, :german, ...)
|
515
|
+
- Reduced the memory footprint when reindexing large tables
|
503
516
|
|
504
517
|
##0.3.2 (December 10th, 2010)
|
505
518
|
|
506
519
|
Features:
|
507
520
|
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
521
|
+
- Moved the per_page option from Resultset.paginate to Database.search
|
522
|
+
- Added support for language settings (global and dynamic per object)
|
523
|
+
- Added support for xapian stemmers
|
524
|
+
- Removed the dependency to progressbar (but it is still used if available)
|
525
|
+
- Made the rebuild_xapian_index method silent by default (use :verbose => true to get status info)
|
513
526
|
|
514
527
|
##0.3.1 (December 6th, 2010)
|
515
528
|
|
516
529
|
Bugfixes:
|
517
530
|
|
518
|
-
|
531
|
+
- Fixed the gemspec
|
519
532
|
|
520
533
|
##0.3.0 (December 4th, 2010)
|
521
534
|
|
522
535
|
Features:
|
523
536
|
|
524
|
-
|
537
|
+
- Rails integration with configuration file (config/xapian_db.yml) and automatic setup
|
525
538
|
|
526
539
|
##0.2.0 (December 1st, 2010)
|
527
540
|
|
528
541
|
Features:
|
529
542
|
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
543
|
+
- Blueprint configuration extended
|
544
|
+
- Adapter for Datamapper
|
545
|
+
- Search by attribute names
|
546
|
+
- Search with wildcards
|
547
|
+
- Document attributes can carry anything that is serializable by YAML
|
535
548
|
|
536
549
|
##0.1.0 (November 23th, 2010)
|
537
550
|
|
data/lib/type_codec.rb
CHANGED
@@ -146,7 +146,7 @@ module XapianDb
|
|
146
146
|
# @return [String] the encoded number
|
147
147
|
def self.encode(number)
|
148
148
|
case number.class.name
|
149
|
-
when "Fixnum", "Float", "Bignum"
|
149
|
+
when "Fixnum", "Float", "Bignum", "Integer"
|
150
150
|
Xapian::sortable_serialise number
|
151
151
|
when "BigDecimal"
|
152
152
|
Xapian::sortable_serialise number.to_f
|
@@ -175,7 +175,7 @@ module XapianDb
|
|
175
175
|
def self.encode(number)
|
176
176
|
return nil if number.nil?
|
177
177
|
case number.class.name
|
178
|
-
when "Fixnum"
|
178
|
+
when "Fixnum", "Integer"
|
179
179
|
Xapian::sortable_serialise number
|
180
180
|
else
|
181
181
|
raise ArgumentError.new "#{number} was expected to be an integer"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xapian_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.7.
|
4
|
+
version: 1.3.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gernot Kogler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|
@@ -253,7 +253,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
253
|
requirements:
|
254
254
|
- - ">="
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: 2.
|
256
|
+
version: 2.3.0
|
257
257
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
258
258
|
requirements:
|
259
259
|
- - ">="
|
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
261
|
version: 1.3.6
|
262
262
|
requirements: []
|
263
263
|
rubyforge_project:
|
264
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.7.7
|
265
265
|
signing_key:
|
266
266
|
specification_version: 4
|
267
267
|
summary: Ruby library to use a Xapian db as a key/value store with high performance
|