forked from saleor/saleor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_dashboard_search_with_product_result.yaml
51 lines (51 loc) · 2.5 KB
/
test_dashboard_search_with_product_result.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
interactions:
- request:
body: '{"query": {"multi_match": {"query": "Group", "fields": ["name", "description"]}},
"_source": {"exclude": ["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/storefront/doc/_search
response:
body: {string: '{"took":2,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":3,"max_score":2.9128819,"hits":[{"_index":"storefront","_type":"doc","_id":"23","_score":2.9128819,"_source":{}},{"_index":"storefront","_type":"doc","_id":"58","_score":2.9128819,"_source":{}},{"_index":"storefront","_type":"doc","_id":"56","_score":2.9128819,"_source":{}}]}}'}
headers:
Warning: ['299 Elasticsearch-5.4.3-eed30a8 "Deprecated field [exclude] used,
expected [excludes] instead" "Thu, 16 Nov 2017 09:44:25 GMT"']
content-length: ['408']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: '{"query": {"multi_match": {"query": "Group", "fields": ["user", "status",
"discount_name"]}}, "_source": {"exclude": ["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/orders/doc/_search
response:
body: {string: '{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}
headers:
Warning: ['299 Elasticsearch-5.4.3-eed30a8 "Deprecated field [exclude] used,
expected [excludes] instead" "Thu, 16 Nov 2017 09:44:25 GMT"']
content-length: ['122']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
- request:
body: '{"query": {"multi_match": {"query": "Group", "type": "cross_fields", "operator":
"and", "fields": ["user", "email", "first_name", "last_name"]}}, "_source":
{"exclude": ["*"]}}'
headers:
connection: [keep-alive]
content-type: [application/json]
method: GET
uri: http://search:9200/users/doc/_search
response:
body: {string: '{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}
headers:
Warning: ['299 Elasticsearch-5.4.3-eed30a8 "Deprecated field [exclude] used,
expected [excludes] instead" "Thu, 16 Nov 2017 09:44:25 GMT"']
content-length: ['122']
content-type: [application/json; charset=UTF-8]
status: {code: 200, message: OK}
version: 1