eden_cloud_search 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +13 -0
- data/Guardfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +142 -0
- data/Rakefile +9 -0
- data/eden_cloud_search.gemspec +30 -0
- data/lib/eden_cloud_search/config.rb +62 -0
- data/lib/eden_cloud_search/document.rb +95 -0
- data/lib/eden_cloud_search/exceptions.rb +3 -0
- data/lib/eden_cloud_search/indexer.rb +44 -0
- data/lib/eden_cloud_search/invalid_document.rb +11 -0
- data/lib/eden_cloud_search/search_response.rb +73 -0
- data/lib/eden_cloud_search/searcher.rb +118 -0
- data/lib/eden_cloud_search/version.rb +3 -0
- data/lib/eden_cloud_search.rb +24 -0
- data/spec/cloud_search/config_spec.rb +23 -0
- data/spec/cloud_search/document_spec.rb +335 -0
- data/spec/cloud_search/indexer_spec.rb +146 -0
- data/spec/cloud_search/invalid_document_spec.rb +9 -0
- data/spec/cloud_search/search_response_spec.rb +220 -0
- data/spec/cloud_search/searcher_spec.rb +254 -0
- data/spec/fixtures/full.json +1 -0
- data/spec/fixtures/vcr_cassettes/index/request/add.yml +38 -0
- data/spec/fixtures/vcr_cassettes/index/request/add_in_batch.yml +40 -0
- data/spec/fixtures/vcr_cassettes/index/request/delete.yml +37 -0
- data/spec/fixtures/vcr_cassettes/search/request/facets.yml +121 -0
- data/spec/fixtures/vcr_cassettes/search/request/facets_with_constraints.yml +123 -0
- data/spec/fixtures/vcr_cassettes/search/request/full.yml +114 -0
- data/spec/fixtures/vcr_cassettes/search/request/paginated.yml +36 -0
- data/spec/fixtures/vcr_cassettes/search/request/paginated_first_page.yml +56 -0
- data/spec/fixtures/vcr_cassettes/search/request/paginated_second_page.yml +81 -0
- data/spec/spec_helper.rb +17 -0
- data/spec/support/vcr.rb +5 -0
- metadata +212 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?facet=genre,year&q=star%2Bwars&return-fields=actor,director,title,year,text_relevance&size=10&start=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Date:
|
24
|
+
- Thu, 02 May 2013 19:48:54 GMT
|
25
|
+
Server:
|
26
|
+
- Server
|
27
|
+
Content-Length:
|
28
|
+
- '3816'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: ASCII-8BIT
|
33
|
+
string: !binary |-
|
34
|
+
eyJyYW5rIjoiLXRleHRfcmVsZXZhbmNlIiwibWF0Y2gtZXhwciI6IihsYWJl
|
35
|
+
bCAnc3RhciB3YXJzJykiLCJoaXRzIjp7ImZvdW5kIjo3LCJzdGFydCI6MCwi
|
36
|
+
aGl0IjpbeyJpZCI6InR0MTE4NTgzNCIsImRhdGEiOnsiYWN0b3IiOlsiQWJl
|
37
|
+
cmNyb21iaWUsIElhbiIsIkJha2VyLCBEZWUgQnJhZGxleSIsIkJ1cnRvbiwg
|
38
|
+
Q29yZXkiLCJFY2tzdGVpbiwgQXNobGV5IiwiRnV0dGVybWFuLCBOaWthIiwi
|
39
|
+
S2FuZSwgVG9tIiwiTGFudGVyLCBNYXR0IiwiVGFiZXIsIENhdGhlcmluZSIs
|
40
|
+
IlRheWxvciwgSmFtZXMgQXJub2xkIiwiV29vZCwgTWF0dGhldyJdLCJkaXJl
|
41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mNGIwYzAwYzY2ZDliNjE2ZmU2OGJmNmNmZjM2
|
118
|
+
ZDcxZTgiLCJ0aW1lLW1zIjo0LCJjcHUtdGltZS1tcyI6MH19
|
119
|
+
http_version:
|
120
|
+
recorded_at: Thu, 02 May 2013 19:48:54 GMT
|
121
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,123 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?facet=genre,year&facet-genre-constraints='Sci-Fi'&q=star%20wars&return-fields=actor,director,title,year,text_relevance&size=10&start=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: !binary |-
|
20
|
+
T0s=
|
21
|
+
headers:
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
YXBwbGljYXRpb24vanNvbg==
|
25
|
+
!binary "RGF0ZQ==":
|
26
|
+
- !binary |-
|
27
|
+
VGh1LCAwMiBNYXkgMjAxMyAyMTowNDoxMiBHTVQ=
|
28
|
+
!binary "U2VydmVy":
|
29
|
+
- !binary |-
|
30
|
+
U2VydmVy
|
31
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
32
|
+
- !binary |-
|
33
|
+
MzYzMw==
|
34
|
+
!binary "Q29ubmVjdGlvbg==":
|
35
|
+
- !binary |-
|
36
|
+
a2VlcC1hbGl2ZQ==
|
37
|
+
body:
|
38
|
+
encoding: ASCII-8BIT
|
39
|
+
string: !binary |-
|
40
|
+
eyJyYW5rI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IlNjaS1GaSIsImNv
|
117
|
+
dW50Ijo3fV19LCJ5ZWFyIjp7Im1pbiI6MTk3NywibWF4IjoyMDA4fX0sImlu
|
118
|
+
Zm8iOnsicmlkIjoiOGEwNjIwZjZjNzJmZjNlNzYzMDZjZGU0NTNkZTFkZWJl
|
119
|
+
ZmU5YzBmZDQ0Y2Y4MmU5ODM3NzJlZDUxMGVkYzY3Zjg1ZGU0YjYwNDg4NjI0
|
120
|
+
YTIiLCJ0aW1lLW1zIjozLCJjcHUtdGltZS1tcyI6MH19
|
121
|
+
http_version:
|
122
|
+
recorded_at: Thu, 02 May 2013 21:04:15 GMT
|
123
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,114 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=star%2Bwars&return-fields=actor,director,title,year,text_relevance&size=10&start=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
!binary "Q29udGVudC1UeXBl":
|
16
|
+
- !binary |-
|
17
|
+
YXBwbGljYXRpb24vanNvbg==
|
18
|
+
!binary "RGF0ZQ==":
|
19
|
+
- !binary |-
|
20
|
+
RnJpLCAxNCBTZXAgMjAxMiAxNjoyODozNSBHTVQ=
|
21
|
+
!binary "U2VydmVy":
|
22
|
+
- !binary |-
|
23
|
+
U2VydmVy
|
24
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
25
|
+
- !binary |-
|
26
|
+
MzUzNg==
|
27
|
+
!binary "Q29ubmVjdGlvbg==":
|
28
|
+
- !binary |-
|
29
|
+
Q2xvc2U=
|
30
|
+
body:
|
31
|
+
encoding: ASCII-8BIT
|
32
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jQxNTFlZDU0YTM1N2U5NGY2NGJkOGIxZGFkYzFk
|
110
|
+
NjdmNmYyZGNiYzA0MmFjODY0MDdjNjhiOTE1ODJmYmE4MjY0MGY0ZCIsInRp
|
111
|
+
bWUtbXMiOjMsImNwdS10aW1lLW1zIjo0fX0=
|
112
|
+
http_version:
|
113
|
+
recorded_at: Fri, 14 Sep 2012 16:28:35 GMT
|
114
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=star%20wars&return-fields=actor,director,title,year,text_relevance&size=5&start=9
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Date:
|
24
|
+
- Fri, 19 Oct 2012 12:47:19 GMT
|
25
|
+
Server:
|
26
|
+
- Server
|
27
|
+
Content-Length:
|
28
|
+
- '225'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ! '{"rank":"-text_relevance","match-expr":"(label ''star wars'')","hits":{"found":7,"start":9,"hit":[]},"info":{"rid":"d1b8bf24ec64151ef1900a937725719e149e6144919d6bc4d8af3b182ca0713fcaadee41aee65029","time-ms":3,"cpu-time-ms":0}}'
|
34
|
+
http_version:
|
35
|
+
recorded_at: Fri, 19 Oct 2012 12:47:24 GMT
|
36
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=star%2Bwars&return-fields=actor,director,title,year,text_relevance&size=4&start=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Date:
|
24
|
+
- Fri, 19 Oct 2012 12:54:26 GMT
|
25
|
+
Server:
|
26
|
+
- Server
|
27
|
+
Content-Length:
|
28
|
+
- '2025'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
body:
|
32
|
+
encoding: US-ASCII
|
33
|
+
string: ! '{"rank":"-text_relevance","match-expr":"(label ''star wars'')","hits":{"found":7,"start":0,"hit":[{"id":"tt1185834","data":{"actor":["Abercrombie,
|
34
|
+
Ian","Baker, Dee Bradley","Burton, Corey","Eckstein, Ashley","Futterman, Nika","Kane,
|
35
|
+
Tom","Lanter, Matt","Taber, Catherine","Taylor, James Arnold","Wood, Matthew"],"director":["Filoni,
|
36
|
+
Dave"],"text_relevance":["307"],"title":["Star Wars: The Clone Wars"],"year":["2008"]}},{"id":"tt0076759","data":{"actor":["Baker,
|
37
|
+
Kenny","Cushing, Peter","Daniels, Anthony","De Aragon, Maria","Diamond, Peter","Fisher,
|
38
|
+
Carrie","Ford, Harrison","Goffe, Rusty","Guinness, Alec","Hamill, Mark","Johnston,
|
39
|
+
Joe","Jones, James Earl","Lyons, Derek","Mayhew, Peter","McCallum, Rick","Prowse,
|
40
|
+
David","Rimmer, Shane","Tierney, Malcolm","Tippett, Phil","Ward, Larry"],"director":["Lucas,
|
41
|
+
George"],"text_relevance":["270"],"title":["Star Wars"],"year":["1977"]}},{"id":"tt0121765","data":{"actor":["Allen,
|
42
|
+
Amy","August, Pernilla","Christensen, Hayden","Csokas, Marton","Fantl, Nicole","Jackson,
|
43
|
+
Samuel L.","Johnson, Fiona","Lee, Christopher","Logan, Daniel","Lucas, Amanda","Lucas,
|
44
|
+
Jett","Lucas, Katie","McDiarmid, Ian","McGregor, Ewan","Morrison, Temuera","Oz,
|
45
|
+
Frank","Portman, Natalie","Smits, Jimmy","Thompson, Jack","Wood, Matthew"],"director":["Lucas,
|
46
|
+
George"],"text_relevance":["269"],"title":["Star Wars: Episode II - Attack
|
47
|
+
of the Clones"],"year":["2002"]}},{"id":"tt0080684","data":{"actor":["Anderson,
|
48
|
+
Bob","Baker, Kenny","Bonehill, Richard","Capri, Mark","Daniels, Anthony","Diamond,
|
49
|
+
Peter","Fisher, Carrie","Ford, Harrison","Guinness, Alec","Hamill, Mark","Jones,
|
50
|
+
James Earl","Mayhew, Peter","McQuarrie, Ralph","Morse, Ralph","Oz, Frank","Prowse,
|
51
|
+
David","Santiago, Michael","Williams, Billy Dee","Williams, Treat","Wingreen,
|
52
|
+
Jason"],"director":["Kershner, Irvin"],"text_relevance":["268"],"title":["Star
|
53
|
+
Wars: Episode V - The Empire Strikes Back"],"year":["1980"]}}]},"info":{"rid":"d1b8bf24ec64151ef1900a937725719ec6661625fa5a3d78f6504f0c0ebd44595331de2b01a2900e","time-ms":3,"cpu-time-ms":0}}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Fri, 19 Oct 2012 12:54:31 GMT
|
56
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://search-imdb-movies-pl6u4t3elu7dhsbwaqbsy3y6be.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=star%2Bwars&return-fields=actor,director,title,year,text_relevance&size=4&start=4
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: !binary |-
|
20
|
+
T0s=
|
21
|
+
headers:
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
YXBwbGljYXRpb24vanNvbg==
|
25
|
+
!binary "RGF0ZQ==":
|
26
|
+
- !binary |-
|
27
|
+
V2VkLCAyNCBPY3QgMjAxMiAxMTo1NTo0NCBHTVQ=
|
28
|
+
!binary "U2VydmVy":
|
29
|
+
- !binary |-
|
30
|
+
U2VydmVy
|
31
|
+
!binary "Q29udGVudC1MZW5ndGg=":
|
32
|
+
- !binary |-
|
33
|
+
MTczNQ==
|
34
|
+
!binary "Q29ubmVjdGlvbg==":
|
35
|
+
- !binary |-
|
36
|
+
a2VlcC1hbGl2ZQ==
|
37
|
+
body:
|
38
|
+
encoding: ASCII-8BIT
|
39
|
+
string: !binary |-
|
40
|
+
eyJyYW5rIjoiLXRleHRfcmVsZXZhbmNlIiwibWF0Y2gtZXhwciI6IihsYWJl
|
41
|
+
bCAnc3RhciB3YXJzJykiLCJoaXRzIjp7ImZvdW5kIjo3LCJzdGFydCI6NCwi
|
42
|
+
aGl0IjpbeyJpZCI6InR0MDEyMDkxNSIsImRhdGEiOnsiYWN0b3IiOlsiQXJt
|
43
|
+
aXRhZ2UsIFJpY2hhcmQiLCJBdWd1c3QsIFBlcm5pbGxhIiwiQmVzdCwgQWht
|
44
|
+
ZWQiLCJCdXJ0dCwgQmVuIiwiQ2h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Ug
|
75
|
+
b2YgdGhlIFNpdGgiXSwieWVhciI6WyIyMDA1Il19fV19LCJpbmZvIjp7InJp
|
76
|
+
ZCI6ImQxYjhiZjI0ZWM2NDE1MWVmMTkwMGE5Mzc3MjU3MTllYmY5YzcyMDBk
|
77
|
+
MTFiOTUyNzk1OGQxZGI4NjE0MDgxZGY5ODA2OGRjYjgyYWJkNjE2IiwidGlt
|
78
|
+
ZS1tcyI6MywiY3B1LXRpbWUtbXMiOjB9fQ==
|
79
|
+
http_version:
|
80
|
+
recorded_at: Wed, 24 Oct 2012 11:55:46 GMT
|
81
|
+
recorded_with: VCR 2.2.4
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "bundler"
|
2
|
+
Bundler.require(:default, :development)
|
3
|
+
|
4
|
+
require "simplecov"
|
5
|
+
SimpleCov.start
|
6
|
+
|
7
|
+
require "eden_cloud_search"
|
8
|
+
|
9
|
+
CloudSearch.configure do |config|
|
10
|
+
config.domain_id = "pl6u4t3elu7dhsbwaqbsy3y6be"
|
11
|
+
config.domain_name = "imdb-movies"
|
12
|
+
end
|
13
|
+
|
14
|
+
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each do |file|
|
15
|
+
require file
|
16
|
+
end
|
17
|
+
|