-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed cases in which null values or missing fields from the "_source"…
… field caused jobs to fail with an attribute type validation exception. Null values and missing fields are now skipped. Added integration tests for arrays in "_attributes" and "_source".
- Loading branch information
1 parent
c2c723b
commit 998c04b
Showing
6 changed files
with
218 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ "index" : { "_index" : ".zentity_test_index_arrays", "_id" : "1" }} | ||
{ "string" : "abc", "array_1": [ "111" ], "array_2" : ["222","222"], "array_3" : [],"array_4" : [ "222", "333", "444" ]} | ||
{ "index" : { "_index" : ".zentity_test_index_arrays", "_id" : "2" }} | ||
{ "string" : "xyz", "array_1": [ "444" ], "array_2" : null, "array_4" : [ "555" ]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ "index" : { "_index" : ".zentity_test_index_arrays", "_type": "doc", "_id" : "1" }} | ||
{ "string" : "abc", "array_1": [ "111" ], "array_2" : ["222","222"], "array_3" : [],"array_4" : [ "222", "333", "444" ]} | ||
{ "index" : { "_index" : ".zentity_test_index_arrays", "_type": "doc", "_id" : "2" }} | ||
{ "string" : "xyz", "array_1": [ "444" ], "array_2" : null, "array_4" : [ "555" ]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"attributes": { | ||
"string": {}, | ||
"array": {} | ||
}, | ||
"resolvers": { | ||
"string": { | ||
"attributes": [ | ||
"string" | ||
] | ||
}, | ||
"array": { | ||
"attributes": [ | ||
"array" | ||
] | ||
} | ||
}, | ||
"matchers": { | ||
"exact": { | ||
"clause": { | ||
"term": { | ||
"{{ field }}": "{{ value }}" | ||
} | ||
} | ||
} | ||
}, | ||
"indices": { | ||
".zentity_test_index_arrays": { | ||
"fields": { | ||
"string": { | ||
"attribute": "string", | ||
"matcher": "exact" | ||
}, | ||
"array_1": { | ||
"attribute": "array", | ||
"matcher": "exact" | ||
}, | ||
"array_2": { | ||
"attribute": "array", | ||
"matcher": "exact" | ||
}, | ||
"array_3": { | ||
"attribute": "array", | ||
"matcher": "exact" | ||
}, | ||
"array_4": { | ||
"attribute": "array", | ||
"matcher": "exact" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0 | ||
}, | ||
"mappings" : { | ||
"properties" : { | ||
"array_1" : { | ||
"type" : "keyword" | ||
}, | ||
"array_2" : { | ||
"type" : "keyword" | ||
}, | ||
"array_3" : { | ||
"type" : "keyword" | ||
}, | ||
"array_4" : { | ||
"type" : "keyword" | ||
}, | ||
"string" : { | ||
"type" : "keyword" | ||
} | ||
} | ||
} | ||
} |