Skip to content

Commit

Permalink
Changes based on feedback. Updated readme, removed semicolon, reverte…
Browse files Browse the repository at this point in the history
…d fixtures and tests
  • Loading branch information
damienwhaley committed Oct 1, 2018
1 parent d244e11 commit 0d817da
Show file tree
Hide file tree
Showing 41 changed files with 308 additions and 306 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -44,9 +44,9 @@ Search for `cats` on the engine `my-engine` with filters and facets:
console.log(res)
})

### Suggest
### Autocomplete

Suggest for `cat` on the engine `my-engine` with filters:
Autocomplete suggestion for `cat` on the engine `my-engine` with filters:

swiftype.suggest({
engine: 'my-engine',
Expand Down
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:42 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:43 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"40feb0526784f832a402ce4bde5b9f3c"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: 92fea0dbd038fc6d6542da52f6bc7733
x-runtime: 0.050611
x-swiftype-frontend-datacenter: dal05
x-request-id: 2a99abef-a869-4d71-940e-9a3cd1448ab0
x-runtime: 0.027572
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",5],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",11],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:42 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:44 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: f0eaac622631317de275cd2fd47f2231
x-runtime: 0.045507
x-swiftype-frontend-datacenter: dal05
x-request-id: c28c2179-e08e-472c-90d4-855e195780cc
x-runtime: 0.033111
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:43 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:45 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"043775f52777ec5e99fe538227da525e"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: c726f2a292c69dc877f8d6ecc46efd0e
x-runtime: 0.088807
x-swiftype-frontend-datacenter: dal05
x-request-id: 807963f6-c8a3-497b-9931-a76749f93b7b
x-runtime: 0.123596
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",0],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",0],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:44 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:46 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 52e080dec77ce1d425618593630ef2c3
x-runtime: 0.077291
x-swiftype-frontend-datacenter: dal05
x-request-id: 5d77c85b-e42e-438b-a23e-63f039d7258e
x-runtime: 0.065801
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:44 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:46 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"043775f52777ec5e99fe538227da525e"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5ed1a9be66fd1b13469ff03c543d893f
x-runtime: 0.102376
x-swiftype-frontend-datacenter: dal05
x-request-id: 3011dd50-58b1-4f87-bf6a-a858db3425fc
x-runtime: 0.033423
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",0],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",0],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:45 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:47 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4b13c1b0d78c3a425cb2ef278f4f42e2
x-runtime: 0.043154
x-swiftype-frontend-datacenter: dal05
x-request-id: 2e03324a-a58f-4f53-a133-6c1330137baf
x-runtime: 0.034366
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:46 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:48 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"043775f52777ec5e99fe538227da525e"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: d3086ab5ebf56e37e864af1954e1e941
x-runtime: 0.048151
x-swiftype-frontend-datacenter: dal05
x-request-id: 8316191f-a52c-456c-a274-d7bb1d331493
x-runtime: 0.059728
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",0],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",0],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:46 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:49 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0cb4f35d6de7ce72f3e8407e2bbc8db4
x-runtime: 0.062797
x-swiftype-frontend-datacenter: dal05
x-request-id: 744d09ec-384d-4a55-8ace-cc1d399b17fc
x-runtime: 0.035857
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:47 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:50 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"043775f52777ec5e99fe538227da525e"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: a7a68b56640a0e08f87e87d599cdcb6d
x-runtime: 0.057848
x-swiftype-frontend-datacenter: dal05
x-request-id: 3380042f-49c0-4620-9081-c7e81893f979
x-runtime: 0.035476
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",0],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",0],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:48 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:51 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4c14cec9a54093ca5fe17c44336e4b65
x-runtime: 0.042817
x-swiftype-frontend-datacenter: dal05
x-request-id: 9cefea73-1206-4cbf-8cc6-e2cc77a29e8d
x-runtime: 0.033187
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:48 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:51 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"043775f52777ec5e99fe538227da525e"
etag: W/"0373916b7349d17758e89a3bb6245a10"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4a4fff32ffd511d7694ae7cca4d5db72
x-runtime: 0.137246
x-swiftype-frontend-datacenter: dal05
x-request-id: b73e5d03-7713-4275-bbd4-bb03eecd444c
x-runtime: 0.040205
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2018-09-25",0],["2018-09-24",0],["2018-09-23",0],["2018-09-22",0],["2018-09-21",0],["2018-09-20",0],["2018-09-19",0],["2018-09-18",0],["2018-09-17",0],["2018-09-16",0],["2018-09-15",0],["2018-09-14",0],["2018-09-13",0],["2018-09-12",0],["2018-09-11",0]]
[["2016-11-28",0],["2016-11-27",0],["2016-11-26",0],["2016-11-25",0],["2016-11-24",0],["2016-11-23",0],["2016-11-22",0],["2016-11-21",0],["2016-11-20",0],["2016-11-19",0],["2016-11-18",0],["2016-11-17",0],["2016-11-16",0],["2016-11-15",0],["2016-11-14",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:49 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:52 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -14,11 +15,10 @@ x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"53826c1fb9363555f18c5efbd008f3ad"
cache-control: max-age=0, private, must-revalidate
x-request-id: 04dbab25ed3c2328bf7ec7b56dfbaa2b
x-runtime: 0.047715
x-swiftype-frontend-datacenter: dal05
x-request-id: 709c0309-d4f0-4994-9a63-48011dd7bda9
x-runtime: 0.030616
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["2014-06-18",0],["2014-06-17",0],["2014-06-16",0],["2014-06-15",0],["2014-06-14",0],["2014-06-13",0],["2014-06-12",0]]
Expand Up @@ -3,7 +3,8 @@ host: api.swiftype.com
authorization: Basic YS10ZXN0LWFwaS1rZXk6

HTTP/1.1 200 OK
date: Tue, 25 Sep 2018 22:35:50 GMT
server: openresty/1.7.10.2
date: Mon, 28 Nov 2016 00:57:53 GMT
content-type: application/json; charset=utf-8
transfer-encoding: chunked
connection: close
Expand All @@ -12,13 +13,12 @@ status: 200 OK
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
etag: W/"b623b4f25adda40687a1bcf82cd1c751"
etag: W/"d751713988987e9331980363e24189ce"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1e8056297960416aa32206c665ddf187
x-runtime: 0.073731
x-swiftype-frontend-datacenter: dal05
x-request-id: 72cd7227-3042-4f4b-b59d-c19d9a8dbc16
x-runtime: 0.059902
x-swiftype-datacenter: dal05
x-swiftype-frontend-node: web01.dal05
x-swiftype-edge-datacenter: dal05
x-swiftype-edge-node: web01.dal05

[["gatsby",11]]
[]

0 comments on commit 0d817da

Please sign in to comment.