Skip to content

Commit

Permalink
Functional tests - fix esArchive mappings with runtime fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Nov 17, 2020
1 parent 95e44f2 commit 77b0b04
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
}
}
],
"runtime": {
"runtime_number": {
"type": "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
},
"properties": {
"@message": {
"fields": {
Expand Down Expand Up @@ -342,11 +348,6 @@
}
},
"type": "text"
},
"runtime_number": {
"type": "runtime",
"runtime_type" : "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
}
},
Expand Down Expand Up @@ -389,6 +390,12 @@
}
}
],
"runtime": {
"runtime_number": {
"type": "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
},
"properties": {
"@message": {
"fields": {
Expand Down Expand Up @@ -712,11 +719,6 @@
}
},
"type": "text"
},
"runtime_number": {
"type": "runtime",
"runtime_type" : "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
}
},
Expand Down Expand Up @@ -759,6 +761,12 @@
}
}
],
"runtime": {
"runtime_number": {
"type": "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
},
"properties": {
"@message": {
"fields": {
Expand Down Expand Up @@ -1082,11 +1090,6 @@
}
},
"type": "text"
},
"runtime_number": {
"type": "runtime",
"runtime_type" : "long",
"script" : { "source" : "emit(doc['bytes'].value)" }
}
}
},
Expand All @@ -1106,4 +1109,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"value": {
"index": "flstest",
"mappings": {
"runtime": {
"runtime_customer_ssn": {
"type": "keyword",
"script": {
"source": "emit(doc['customer_ssn'].value + ' calculated at runtime')"
}
}
},
"properties": {
"customer_name": {
"fields": {
Expand Down Expand Up @@ -30,13 +38,6 @@
}
},
"type": "text"
},
"runtime_customer_ssn": {
"type": "runtime",
"runtime_type": "keyword",
"script": {
"source": "emit(doc['customer_ssn'].value + ' calculated at runtime')"
}
}
}
},
Expand All @@ -47,4 +48,4 @@
}
}
}
}
}

0 comments on commit 77b0b04

Please sign in to comment.