diff --git a/ckan/lib/search/index.py b/ckan/lib/search/index.py index cd4ac1059e2..87b5606fa38 100644 --- a/ckan/lib/search/index.py +++ b/ckan/lib/search/index.py @@ -189,6 +189,9 @@ def index_package(self, pkg_dict, defer_commit=False): pkg_dict[TYPE_FIELD] = PACKAGE_TYPE + # Save dataset type + pkg_dict['dataset_type'] = pkg_dict['type'] + pkg_dict = dict([(k.encode('ascii', 'ignore'), v) for (k, v) in pkg_dict.items()]) for k in ('title', 'notes', 'title_string'):