From 42e5f775f16ffa0ada79320f933907e8209fc06e Mon Sep 17 00:00:00 2001 From: amercader Date: Wed, 5 Dec 2012 11:53:22 +0000 Subject: [PATCH] Index dataset type --- ckan/lib/search/index.py | 3 +++ 1 file changed, 3 insertions(+) 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'):