Ticket #1352 (new enhancement) — at Initial Version

Opened 3 years ago

Last modified 23 months ago

Use logic functions instead of as_dict when indexing entities

Reported by: amercader Owned by:
Priority: major Milestone: ckan-backlog
Component: ckan Keywords: search
Cc: david.raznick@…, john.glover@… Repository: ckan
Theme: none

Description

The current search implementation uses the output of the the as_dict method of the domain Package object to update the index

https://bitbucket.org/okfn/ckan/src/56c79e3fc44c/ckan/lib/search/index.py#cl-48

This prevents extensions from being able to index custom properties (e.g. faceting by custom extras not included in the model).

The search should use the logic function to get the package properties:

get_action('package_show')(context,data_dict)
Note: See TracTickets for help on using tickets.