in eland/filter.py [0:0]
def __or__(self, x: "BooleanFilter") -> "BooleanFilter":
if tuple(self.subtree.keys()) == ("should",):
if "bool" in x._filter:
self.subtree["should"].append(x.build())
else:
self.subtree["should"].append(x.subtree)
return self
elif tuple(x.subtree.keys()) == ("should",):
if "bool" in self._filter:
x.subtree["should"].append(self.build())
else:
x.subtree["should"].append(self.subtree)
return x
return OrFilter(self, x)