xapian_db 1.3.3 → 1.3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/xapian_db/adapters/base_adapter.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba9b119225f8d88f6210a6bab5c805da9d304f03
|
4
|
+
data.tar.gz: 9ee4b79e23d221af19240cade73e42f577b9422a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82d67bc2c6d9458e61e1cfb4d29afee34c78929efc897c108658452be12ead8e07bf445f8ee24e38e6790b064687934ad256a969c1f90a5777b95fe164ccaec8
|
7
|
+
data.tar.gz: 266bd99d634de8468c4921686b5cfbf4d4cf61751ec0b3f6dede7a6d058d71a50f61378ab438714d4236fae8b632666571d67367076d8efa2dd112e0706d4f60
|
data/CHANGELOG.md
CHANGED
@@ -37,11 +37,11 @@ module XapianDb
|
|
37
37
|
raise ArgumentError.new "invalid order clause: attributes #{undefined_attrs.inspect} are not defined" unless undefined_attrs.empty?
|
38
38
|
options[:sort_indices] = attr_names.map {|attr_name| XapianDb::DocumentBlueprint.value_number_for(attr_name) }
|
39
39
|
end
|
40
|
-
result = XapianDb.database.search "#{class_scope}
|
40
|
+
result = XapianDb.database.search "#{class_scope} AND (#{expression})", options
|
41
41
|
|
42
42
|
# Remove the class scope from the spelling suggestion (if any)
|
43
43
|
if result.spelling_suggestion
|
44
|
-
scope_length = "#{class_scope}
|
44
|
+
scope_length = "#{class_scope} AND (".size
|
45
45
|
result.spelling_suggestion = result.spelling_suggestion.slice scope_length..-2
|
46
46
|
end
|
47
47
|
result
|