ckanext-sitesearch

Index different CKAN entities in Solr, not just datasets
Requirements
This extension requires CKAN 2.9 or higher and Python 3
Features
Search actions
ckanext-sitesearch allows Solr-powered searches on the following CKAN entities:
| Entity |
Action |
Permissions |
Notes |
| Organizations |
organization_search |
Public |
|
| Groups |
group_search |
Public |
|
| Users |
user_search |
Sysadmins only |
|
| Pages |
page_search |
Public (individual page permissions apply) |
Requires ckanext-pages |
All *_search actions support most of the same paramters that package_search, except the include_* ones. That includes q, fq, rows, start, sort and all the facet* ones.
In all actions, the output matches the one of package_search as well, an object with count, results and search_facets keys. results is a list of the corresponding entities dict (ie the result of organization_show, user_show etc):
{
"count": 2,
"results": [
<validated data dict 1>,
<validated data dict 2>,
],
"search_facets": {
<facet_field_1>: {
"items": {
"count": 1,
"display_name": "example",
"name": "example"
},
"title: "example"
}
}
}
Site search
Additionally, the plugin registers a site_search action that performs a search across all entities that the user is allowed to, including datasets. Results are returned in an object