code: def _build_filtered_query(self, f, operator):
          
          self._filtered = True
          if isinstance(f, Filter):
              filter_object = f
          else:
              filter_object = Filter(operator).filter(f)
          self._filter_dsl = filter_object
docs: Create the root of the filter tree