Skip to content

Add additional fields API tests #68897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ Test nested field inside object structure:
id: 2
refresh: true
body:
obj:
products:
- { "manufacturer" : "MaxEngine", "base_price" : 11.0, "product_id" : 67890}
obj.products:
- { "manufacturer" : "RealTec", "base_price" : 12.55, "product_id" : 23451}
obj.other_obj_field: other_value2
Expand All @@ -538,7 +541,9 @@ Test nested field inside object structure:
- match:
hits.hits.0.fields.obj\.other_obj_field.0: other_value
- match:
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["RealTec"], "base_price" : [12.55], "product_id" : [23451]}
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["MaxEngine"], "base_price" : [11.0], "product_id" : [67890]}
- match:
hits.hits.1.fields.obj\.products.1: { "manufacturer" : ["RealTec"], "base_price" : [12.55], "product_id" : [23451]}
- match:
hits.hits.1.fields.obj\.other_obj_field.0: other_value2

Expand All @@ -562,7 +567,9 @@ Test nested field inside object structure:
- match:
hits.hits.0.fields.obj\.products.1: { "manufacturer" : ["HyperSmart"]}
- match:
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["RealTec"]}
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["MaxEngine"]}
- match:
hits.hits.1.fields.obj\.products.1: { "manufacturer" : ["RealTec"]}

- do:
search:
Expand All @@ -575,7 +582,9 @@ Test nested field inside object structure:
- match:
hits.hits.0.fields.obj\.products.1: { "manufacturer" : ["HyperSmart"]}
- match:
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["RealTec"]}
hits.hits.1.fields.obj\.products.0: { "manufacturer" : ["MaxEngine"]}
- match:
hits.hits.1.fields.obj\.products.1: { "manufacturer" : ["RealTec"]}
---
Test doubly nested fields:
- skip:
Expand Down