code: def clean_parameters(self, params):
          '''Only keep known parameters'''
          return {k: v for k, v in params.items() if k in self.adapter.facetsf clean_parameters(self, params):
          '''Only keep known parameters'''
          return {k: v for k, v in params.items() if k in self.adapter.facets}
docs: Only keep known parameters