[ckan-dev] Facets with Field tags vs. field extras

Renato Guevara guevara.renato at gmail.com
Tue Oct 28 22:24:20 UTC 2014


I followed the example listed below:

http://docs.ckan.org/en/latest/extensions/adding-custom-fields.html

with respect to adding a field that has preset options.  However, I noticed
that for tags, you have to use "convert_to_tags" and "convert_from_tags"
for modifying the package schemas and showing package schemas,
respectively.  I followed these instructions, however, I ran into an issue
with the facet search.  I also extended the facet search interface,
however, it seems that the examples are only for searching fields with
single values.  After observing the package when I run a package show on my
dataset, the field I added using the tag method, is a field with an array
of one item as such

queryLanguage: [sql].

How can I implement a facet search on this?

Renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141028/0208da94/attachment-0002.html>


More information about the ckan-dev mailing list