hub
hub copied to clipboard
Fix unblocking/unfiltering in elasticsearch
After abandoning a blocking/filtering channel, the blocked/filtered claims don't get unblocked/unfiltered.
Reported by @tzarebczan
curl -X POST "localhost:9200/claims/_update_by_query?pretty" -H 'Content-Type: application/json' -d'
{
"script": {
"source": "ctx._source.censor_type=0; ctx._source.censoring_channel_id=null;",
"lang": "painless"
},
"query": {
"term": {
"channel_id": "x"
}
}
}
'
this query was used to manually do it, we could use something similar but querying for another field
It does resolve, just won't return in claim search.