Search code examples
searchtagsckan

CKAN: specifying tags in search box?


We use CKAN as open data portal software. The search engine is powered by Solr.

When using the API for searches tags can be specified.

Is it possible to enter tags in the search box and make a search exclusively for tags?

I tried to enter

tags:(tag1 OR tag2)

and this seems to work. But is this feature supported and mentioned in the docs?


Solution

  • Yes, to limit the dataset search you can use faceted search by using the tags. When you search with tags, CKAN will use fq(filter query) to restrict the superset of data returned. Check this Search API call example Tags. Also, you can check the search settings configuration. You can also customize the search facets by using IFacets interface.