{ \"_index\" : \"test\", \"_type\" : \"test\", \"_id\" : \"1212\", \"_version\" : 5, \"found\" : true, \"_source\" : { \"count\" : 42, \"list_dat
I don't know why, but I find that
ctx._source.list_data.removeAll{it.list_id == remove_id}
can't work. Instead I use removeIf like this:
removeIf
ctx._source.list_data.removeIf{list_item -> list_item.list_id == remove_id}
where list_item could be arbitrary string.
list_item