Ticket #1547 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Add search methods (before and after) to the IPackageController interface

Reported by: amercader Owned by: amercader
Priority: major Milestone: ckan-sprint-2012-01-23
Component: ckan Keywords: search
Cc: Repository: ckan
Theme: none

Description (last modified by amercader) (diff)

Time estimate: 1d

Add a two search method to the IPackageController interface so extensions can:

  • Modify the query being sent to Solr
def before_search(search_params):

    return search_params

  • Modify the results returned (after_search)
def after_search(search_results, search_params):

    return search_results

Please see this pad for implementation details:

http://ckan.okfnpad.org/search

Change History

comment:1 Changed 2 years ago by amercader

  • Description modified (diff)

comment:2 Changed 2 years ago by amercader

  • Description modified (diff)

comment:3 Changed 2 years ago by amercader

  • Description modified (diff)

comment:4 Changed 2 years ago by amercader

  • Summary changed from Add a search method to the IPackageController interface to Add search methods (before and after) to the IPackageController interface
  • Description modified (diff)
  • Milestone changed from ckan-sprint-2011-12-19 to current-ckan-sprint-2012-01-23

comment:5 Changed 2 years ago by amercader

  • Status changed from new to closed
  • Resolution set to fixed

comment:6 Changed 2 years ago by dread

Went into CKAN 1.6

Note: See TracTickets for help on using tickets.