[ckan-dev] Search API does not return resource_type
Philipp Lämmel
philipp.laemmel at fokus.fraunhofer.de
Tue Jul 31 10:00:41 UTC 2012
Hey all,
first of all, thanks for providing such a nice piece of software.
Our use case is as follows:
We preview for each dataset the resources, but we want to exclude all
documentation. For documentations, we use the resource_type field and
set it explicitly to documentation.
We are using CKAN 1.5.1 with a call to api/2/search/ to find relevant
packages with all_fields=1 (e.g.
<ckan-instance>/api/2/search/dataset?q=test&all_fields=1). We realised
that the returned JSON does not contain the resource_type of each
resource. Therefore, we are not able to distinguish between files and
documentation.
Is there any way to retrieve this information without making an API call
for each resource?
Are there any plans to integrate resource_type like "res_url" or
"res_format"? We realised that in the latest CKAN version you added a
data_dict, which contains the relevant information. Should we use this
field or does a more elegant way exist?
Thanks,
Philipp
More information about the ckan-dev
mailing list