Hi There,
I have the documents in my index in the following format;
{
"_index": "mt_uat-app",
"_type": "doc",
"_id": "bR2vjmUBJkTWRy0yg7Y1",
"_version": 1,
"_score": 1,
"_source": {
"PartnerID": "wirecard",
"Environment": "UAT",
"loglevel": "INFO",
"APITransactionId": "4d95e9b12cf0488084a22a8760c92c20",
"audittype": "Audit-IN",
"@timestamp": "2018-08-31T01:03:10.917Z",
"PartnerUniqueID": "5d032ba3a5ff4c0aab7c5cb2cb6382c5",
"CorrelationId": "baf56f70-ace7-11e8-b5ae-027cf458ba1c",
"Request": "POST /api/experience/member/login",
"ApplicationName": "experience-app",
},
"fields": {
"@timestamp": [
"2018-08-31T01:03:10.917Z"
]
}
}
I intend to delete a set of docs that have matching APITransactionId. The list of APITransactionId is also a set.
I could delete the doc one at a time by delete_by_query API as follows;
POST mt_uat-app/_delete_by_query
{
"query": {
"match": {
"APITransactionId": "b0b808be30854a108c862451aa58e655"
}
}
}
But is there a way like if i have multiple APITransactionId and delete all docs that have that Id. I also tried to pass an array like below, but it doesnt work;
POST mt_uat-app/_delete_by_query
{
"query": {
"match": {
"APITransactionId": ["b0b808be30854a108c862451aa58e655", "4d7ac86f688e4163aa5264866ed72fca", "7931f54526274cc2b481c10ba7b6a3b2"]
}
}
}
Any solution and alternative approaches, please kindly suggest!
Regards
Kaushik