diff --git a/cl/lib/elasticsearch_utils.py b/cl/lib/elasticsearch_utils.py index bad8e9f177..c6c99c9d81 100644 --- a/cl/lib/elasticsearch_utils.py +++ b/cl/lib/elasticsearch_utils.py @@ -1484,6 +1484,8 @@ def build_full_join_es_queries( parent_filters = build_join_es_filters(cd) # If parent filters, extend into child_filters. if parent_filters: + # Removes the party and attorney filter if they were provided because + # those fields are not part of the RECAPDocument mapping. child_filters.extend( [ query