Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if sources or statuses:
- must_bool_query = []
- bool_query['filter'] = {
- 'bool': {
- 'must': must_bool_query
- }
- }
- if sources:
- must_bool_query.append({'bool': {'should': sou
- if statuses:
- must_bool_query.append({'bool': {'should': statuses}})
Add Comment
Please, Sign In to add comment