diff --git a/arches/app/search/components/base.py b/arches/app/search/components/base.py index 74bbf66d6a3..82a22413d89 100644 --- a/arches/app/search/components/base.py +++ b/arches/app/search/components/base.py @@ -112,10 +112,8 @@ def get_searchview_name(self, default_type=None): return searchview_component_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 - ) + default_type = kwargs.get("default_type", None) + searchview_component_name = self.get_searchview_name(default_type=default_type) return self.get_filter(searchview_component_name) def create_search_query_dict(self, key_value_pairs: List[Tuple[str, Any]]): diff --git a/arches/app/views/search.py b/arches/app/views/search.py index 2feeff1c99f..c1f22471d67 100644 --- a/arches/app/views/search.py +++ b/arches/app/views/search.py @@ -81,7 +81,9 @@ def get(self, request): ) geocoding_providers = Geocoder.objects.all() search_component_factory = SearchFilterFactory(request) - searchview_instance = search_component_factory.get_searchview_instance() + searchview_instance = search_component_factory.get_searchview_instance( + default_type="searchViewDefault" + ) search_components = searchview_instance.get_searchview_filters() datatypes = DDataType.objects.all()