Skip to content

Commit

Permalink
Revert "add nested fields param mapping findings index for doc level …
Browse files Browse the repository at this point in the history
…queries (opensearch-project#1276)"

This reverts commit 2146199.

Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Nov 28, 2023
1 parent 76dc83e commit e943fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dynamic": "strict",
"_meta" : {
"schema_version": 4
"schema_version": 3
},
"properties": {
"schema_version": {
Expand Down Expand Up @@ -46,9 +46,6 @@
"type" : "keyword"
}
}
},
"fields": {
"type": "text"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AlertIndicesIT : AlertingRestTestCase() {

putFindingMappings(
AlertIndices.findingMapping().trimStart('{').trimEnd('}')
.replace("\"schema_version\": 4", "\"schema_version\": 0")
.replace("\"schema_version\": 3", "\"schema_version\": 0")
)
assertIndexExists(AlertIndices.FINDING_HISTORY_WRITE_INDEX)
verifyIndexSchemaVersion(AlertIndices.FINDING_HISTORY_WRITE_INDEX, 0)
Expand All @@ -89,7 +89,7 @@ class AlertIndicesIT : AlertingRestTestCase() {
executeMonitor(trueMonitor.id)
assertIndexExists(AlertIndices.FINDING_HISTORY_WRITE_INDEX)
verifyIndexSchemaVersion(ScheduledJob.SCHEDULED_JOBS_INDEX, 8)
verifyIndexSchemaVersion(AlertIndices.FINDING_HISTORY_WRITE_INDEX, 4)
verifyIndexSchemaVersion(AlertIndices.FINDING_HISTORY_WRITE_INDEX, 3)
}

fun `test alert index gets recreated automatically if deleted`() {
Expand Down

0 comments on commit e943fc6

Please sign in to comment.