xapian-fu 1.3 → 1.3.1
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.rdoc +4 -0
- data/lib/xapian_fu/result_set.rb +2 -1
- data/lib/xapian_fu/xapian_db.rb +1 -1
- data/spec/xapian_doc_value_accessor_spec.rb +2 -0
- metadata +5 -5
data/CHANGELOG.rdoc
CHANGED
data/lib/xapian_fu/result_set.rb
CHANGED
@@ -18,7 +18,8 @@ module XapianFu
|
|
18
18
|
@current_page = options[:current_page]
|
19
19
|
@per_page = options[:per_page]
|
20
20
|
@corrected_query = options[:corrected_query]
|
21
|
-
|
21
|
+
doc_options = {:xapian_db => options[:xapian_db] }
|
22
|
+
concat mset.matches.collect { |m| XapianDoc.new(m, doc_options) }
|
22
23
|
end
|
23
24
|
|
24
25
|
# The estimated total number of matches this search could return
|
data/lib/xapian_fu/xapian_db.rb
CHANGED
@@ -234,7 +234,7 @@ module XapianFu #:nodoc:
|
|
234
234
|
end
|
235
235
|
enquiry.query = query
|
236
236
|
ResultSet.new(:mset => enquiry.mset(offset, per_page), :current_page => page + 1,
|
237
|
-
:per_page => per_page, :corrected_query => qp.corrected_query)
|
237
|
+
:per_page => per_page, :corrected_query => qp.corrected_query, :xapian_db => self)
|
238
238
|
end
|
239
239
|
|
240
240
|
# Run the given block in a XapianDB transaction. Any changes to the
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xapian-fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.3.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- John Leach
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
+
date: 2011-10-12 00:00:00 Z
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|
20
21
|
name: rspec
|
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
167
|
requirements: []
|
167
168
|
|
168
169
|
rubyforge_project: xapian-fu
|
169
|
-
rubygems_version: 1.
|
170
|
+
rubygems_version: 1.8.10
|
170
171
|
signing_key:
|
171
172
|
specification_version: 3
|
172
173
|
summary: A Ruby interface to the Xapian search engine
|
@@ -230,4 +231,3 @@ test_files:
|
|
230
231
|
- spec/build_db_for_value_testing.rb
|
231
232
|
- spec/query_parser_spec.rb
|
232
233
|
- spec/spec.opts
|
233
|
-
has_rdoc:
|