diff --git a/arches/app/search/components/base.py b/arches/app/search/components/base.py index b0b6e06cf46..d8607abd27e 100644 --- a/arches/app/search/components/base.py +++ b/arches/app/search/components/base.py @@ -80,7 +80,7 @@ def get_filter(self, componentname): else: return None - def get_searchview_name(self): + def get_searchview_name(self, default_type=None): if not self.request: searchview_component_name = None elif self.request.method == "POST": @@ -101,8 +101,11 @@ def get_searchview_name(self): return searchview_component_name - def get_searchview_instance(self): - searchview_component_name = self.get_searchview_name() + def get_searchview_instance(self, **kwargs): + default_property = kwargs.get("default_property", None) + searchview_component_name = self.get_searchview_name( + default_property=default_property + ) return self.get_filter(searchview_component_name) def create_search_query_dict(self, key_value_pairs: List[Tuple[str, Any]]):