tanker 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tanker.rb +2 -4
- data/tanker.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/lib/tanker.rb
CHANGED
@@ -79,8 +79,7 @@ module Tanker
|
|
79
79
|
end
|
80
80
|
|
81
81
|
query = "__any:(#{query.to_s}) __type:#{self.name}"
|
82
|
-
options = { :start => per_page * page, :len => per_page }.merge(options)
|
83
|
-
|
82
|
+
options = { :start => per_page * (page - 1), :len => per_page }.merge(options)
|
84
83
|
results = index.search(query, options)
|
85
84
|
|
86
85
|
ids = unless results["results"].empty?
|
@@ -135,5 +134,4 @@ module Tanker
|
|
135
134
|
self.class.name + ' ' + self.id.to_s
|
136
135
|
end
|
137
136
|
end
|
138
|
-
end
|
139
|
-
|
137
|
+
end
|
data/tanker.gemspec
CHANGED