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