cloud_search 0.1.8 → 0.1.9
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/lib/cloud_search/searcher.rb +0 -5
- data/lib/cloud_search/version.rb +1 -1
- data/spec/cloud_search/searcher_spec.rb +0 -18
- metadata +2 -2
data/lib/cloud_search/version.rb
CHANGED
@@ -51,24 +51,6 @@ describe CloudSearch::Searcher do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe "#with_weights" do
|
55
|
-
before do
|
56
|
-
subject.with_query("star").with_weights(:title => 3, :description => 1, :default_weight => 0.5)
|
57
|
-
end
|
58
|
-
|
59
|
-
it "adds the informed weighted fields to the searcher object" do
|
60
|
-
subject.weights.should == {:title => 3, :description => 1, :default_weight => 0.5}
|
61
|
-
end
|
62
|
-
|
63
|
-
it "adds the weighted fields to the search url" do
|
64
|
-
subject.url.should == "#{url_prefix}q=star&size=10&start=0&cs.text_relevance(%7B%22title%22:3,%22description%22:1,%22default_weight%22:0.5%7D)"
|
65
|
-
end
|
66
|
-
|
67
|
-
it "returns the searcher object" do
|
68
|
-
subject.with_weights(:title => 3).should == subject
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
54
|
describe "#as_boolean_query" do
|
73
55
|
it "sets the query mode to 'boolean'" do
|
74
56
|
subject.as_boolean_query
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|