Skip to content

Commit

Permalink
Index dataset type
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader authored and tobes committed Jan 9, 2013
1 parent 783856d commit 42e5f77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/lib/search/index.py
Expand Up @@ -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'):
Expand Down

0 comments on commit 42e5f77

Please sign in to comment.