Skip to content

Commit

Permalink
include inherited properties for all classes
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Sep 5, 2024
1 parent 7dbf555 commit 89432a7
Show file tree
Hide file tree
Showing 6 changed files with 608 additions and 115 deletions.
4 changes: 1 addition & 3 deletions elasticsearch_dsl/faceted_search_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ class TermsFacet(Facet[_R]):
def add_filter(self, filter_values: List[FilterValueType]) -> Optional[Query]:
"""Create a terms filter instead of bool containing term filters."""
if filter_values:
return Terms(
_expand__to_dot=False, **{self._params["field"]: filter_values}
)
return Terms(self._params["field"], filter_values, _expand__to_dot=False)
return None


Expand Down
Loading

0 comments on commit 89432a7

Please sign in to comment.