CloudSesame 0.6.1 → 0.6.2
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/cloud_sesame.gemspec +1 -1
- data/lib/cloud_sesame/query/dsl/response_methods.rb +3 -4
- 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: 44c7ef9d947994c9b816ee05d8cb55d2ff003523
|
|
4
|
+
data.tar.gz: 92fec171662d7c03d8e64a7bf6e2ebba77028481
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c73bfb9511181436cd79bc07ee62dde2f91cf30e4c08c2dadd64baba4570e018221042ceba6bc72ac2ce8d59df6a401fec39f203696cb1e2b7423ff93286b7f2
|
|
7
|
+
data.tar.gz: 5019189b02a0e1a20bb308762e364c389ac10d8d35af6edafc904d8fa04568def1774a1025a7d7dcbd8170bffb1ce768db38d9637bd02427cc7bb67c57e8b3bc
|
data/Gemfile.lock
CHANGED
data/cloud_sesame.gemspec
CHANGED
|
@@ -30,13 +30,12 @@ module CloudSesame
|
|
|
30
30
|
compiled = request.compile
|
|
31
31
|
raise Error::MissingQuery.new("Query or FilterQuery can not be empty!") if !compiled[:query] || compiled[:query].empty?
|
|
32
32
|
if context[:cache]
|
|
33
|
-
compiled
|
|
34
|
-
|
|
35
|
-
results = @searchable.cloudsearch.client.search compiled
|
|
33
|
+
@response = Rails.cache.fetch(compiled.merge({ searchable: searchable })) do
|
|
34
|
+
results = searchable.cloudsearch.client.search compiled
|
|
36
35
|
OpenStruct.new(status: results.status, hits: results.hits, facets: results.facets)
|
|
37
36
|
end
|
|
38
37
|
else
|
|
39
|
-
@response =
|
|
38
|
+
@response = searchable.cloudsearch.client.search compiled
|
|
40
39
|
end
|
|
41
40
|
@response
|
|
42
41
|
end
|