cloud_search 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,11 +24,6 @@ module CloudSearch
24
24
  self
25
25
  end
26
26
 
27
- def with_weights(weights)
28
- @weights = weights
29
- self
30
- end
31
-
32
27
  def with_filter(filter)
33
28
  @filters << filter
34
29
  self
@@ -1,3 +1,3 @@
1
1
  module CloudSearch
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -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.8
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-11-30 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry