Skip to content

Commit 28a98e2

Browse files
include inherited properties in docstrings and constructors
1 parent 92e4de1 commit 28a98e2

File tree

6 files changed

+1783
-191
lines changed

6 files changed

+1783
-191
lines changed

elasticsearch_dsl/faceted_search_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ class TermsFacet(Facet[_R]):
141141
def add_filter(self, filter_values: List[FilterValueType]) -> Optional[Query]:
142142
"""Create a terms filter instead of bool containing term filters."""
143143
if filter_values:
144-
return Terms(
145-
_expand__to_dot=False, **{self._params["field"]: filter_values}
146-
)
144+
return Terms(self._params["field"], filter_values, _expand__to_dot=False)
147145
return None
148146

149147

0 commit comments

Comments
 (0)