[ckan-dev] Resource text search

Sean Hammond sean.hammond at okfn.org
Tue May 8 11:08:40 UTC 2012


> I'm trying to setup a page where we can see results from a text search in
> Ckan resources. However, it came to me that everytime I perform a search,
> even if I supply resource parameters, I get all results for the dataset.
> 
> As an example, I've tried this page:
> http://thedatahub.org/api/search/resource?format=api/sparql&limit=200&q=csv
> 
> No matter what parameters I send inside the *q* var, I allways get the same
> results. So, the question is: is it possible to run a text search in a
> resource?

If I understand the question right, you want to use the CKAN API to
search inside the contents of a resource? You can do this with some
resources using CKAN's DataStore and Data API, see here:

http://docs.ckan.org/en/latest/datastore.html

Hope that helps




More information about the ckan-dev mailing list