Fix unblocking/unfiltering in elasticsearch #13

Open
opened 2022-04-01 17:19:05 +02:00 by jackrobison · 2 comments
jackrobison commented 2022-04-01 17:19:05 +02:00 (Migrated from github.com)

After abandoning a blocking/filtering channel, the blocked/filtered claims don't get unblocked/unfiltered.

Reported by @tzarebczan

After abandoning a blocking/filtering channel, the blocked/filtered claims don't get unblocked/unfiltered. Reported by @tzarebczan
shyba commented 2022-04-01 17:23:15 +02:00 (Migrated from github.com)
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

``` 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
tzarebczan commented 2022-08-25 19:20:24 +02:00 (Migrated from github.com)

It does resolve, just won't return in claim search.

It does resolve, just won't return in claim search.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/hub#13
No description provided.