xapian_db 1.2.4.6 → 1.2.4.7
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/CHANGELOG.md +6 -0
- data/lib/xapian_db/database.rb +0 -9
- data/lib/xapian_db.rb +0 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/xapian_db/database.rb
CHANGED
@@ -218,15 +218,6 @@ module XapianDb
|
|
218
218
|
writer.commit
|
219
219
|
end
|
220
220
|
|
221
|
-
# Reset (empty) the database
|
222
|
-
def reset
|
223
|
-
# We must release the writer and run the garbage collector to remove the write lock
|
224
|
-
@writer = nil
|
225
|
-
GC.start
|
226
|
-
@writer = Xapian::WritableDatabase.new(@path, Xapian::DB_CREATE_OR_OVERWRITE)
|
227
|
-
@reader = Xapian::Database.new(@path)
|
228
|
-
end
|
229
|
-
|
230
221
|
end
|
231
222
|
|
232
223
|
end
|
data/lib/xapian_db.rb
CHANGED
@@ -142,7 +142,6 @@ module XapianDb
|
|
142
142
|
# @option options [Boolean] :verbose (false) Should the reindexing give status informations?
|
143
143
|
# @return [Boolean] Did we reindex anything?
|
144
144
|
def self.rebuild_xapian_index(options={})
|
145
|
-
database.reset
|
146
145
|
configured_classes = XapianDb::DocumentBlueprint.configured_classes
|
147
146
|
return false unless configured_classes.size > 0
|
148
147
|
configured_classes.each do |klass|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xapian_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.4.
|
4
|
+
version: 1.2.4.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -246,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
segments:
|
248
248
|
- 0
|
249
|
-
hash:
|
249
|
+
hash: 1251927671395109686
|
250
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
251
|
none: false
|
252
252
|
requirements:
|