Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (2104 - 2106 of 2152)

Ticket Resolution Summary Owner Reporter
#1547 fixed Add search methods (before and after) to the IPackageController interface amercader amercader

Reported by amercader, 2 years ago.

Description

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

#1590 fixed Create customized feeds for the IATI Registry amercader amercader

Reported by amercader, 2 years ago.

Description

We need a way to track changes on the registry (datasets edited or updated), globally and on a per country/publisher/etc. basis. RSS and Atom feeds are really popular, and after closing #191 and #1498 crating them from the search results should be fairly easy.

The following URLs are pretty self-explanatory:

http://localhost:5000/feed/registry.rss

http://localhost:5000/feed/country/AF.rss
http://localhost:5000/feed/publisher/worldbank.rss
http://localhost:5000/feed/organisation_type/10.rss

As we need to implement custom wrappers for countries, publishers, etc, we might as well offer a fully customizable feed, e.g.:

http://localhost:5000/feed/custom.rss?q=activity_count:[* TO 100]
http://localhost:5000/feed/custom.rss?publishertype=primary_source

Apart from the actual feeds, there will be a small amount of work at the template level to add the links to the suitable pages (and maybe a generic page showing all available feeds)

#1592 fixed Add metadata_modified and metadata_created to package_dictize output amercader amercader

Reported by amercader, 2 years ago.

Description

The dict returned by package_dictize does not include metadata_modified and metadata_created. These are really useful properties, so it's worth having them on the standard package dict representation, which is used in several places, like at the template level.

Note: See TracQuery for help on using queries.