Hi,
I have created an index in elastic search where it has data something like this,
{
"teamPermission":{
"1":2,
"2":2,
"3":2
},
"userPermission":{
"18":"1"
},
"unique":"N",
"name":"ABC",
"code":"abc",
"values":{
"Yes":"Yes",
"No":"No"
},
"lastModifiedBy":18
}
I'm updating the index through Java API using update.
If anything gets changed in data, for example, any value gets added for the team permission field,
the index will have the same data as expected but, if I delete any value from the field team permission for example, If I remove "1": 2 value then it should be
"teamPermission":{
"2":2,
"3":2
}
but it is not reflecting in the index. It's same as previous for each delete operation from HashMap.
I have given mappings as an object for the field.
Can anyone please tell me why data is not deleting from Map?
Thanks in advance!