Extension CKAN DataStore Search


Extension Basics

Title
CKAN DataStore Search
Name
ckanext-datastore-search
Type
Public extension
Description
CKAN plugin to create search indices for DataStore resources using SOLR as search engine
CKAN versions

~2.10,~2.11

Show details
Download-Url (zip)
Last commit
9 months ago (2025-06-03 18:13:25)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

This extension hooks into the creation and insertion of DataStore tables and records, and dynamically creates and alters search indices. By default, it uses SOLR as the search engine.

Key Features

  • Search Index Creation: Automatically creates and manages SOLR search indices for DataStore resources
  • Configurable Engine: Supports different search engines via IDatastoreSearchBackend interface
  • Database-Only Mode: Option to only use search engine without database storage
  • Threshold-Based Indexing: Can set minimum row count before creating search index
  • Redis Queue Integration: Uses Redis for asynchronous SOLR core creation
  • XLoader/DataPusher Integration: Compatible with data loading plugins

Requirements

  • SOLR 9+ running in Stand Alone mode (Cloud Mode NOT supported)
  • Python SOLR Utils service running on SOLR server
  • Redis for job queue management
  • CKAN jobs worker service running for callbacks

Configuration Options

Setting Description Default
ckanext.datastore_search.engine Search engine to use solr
ckanext.datastore_search.url URL to search engine server required
ckanext.datastore_search.prefix Prefix for SOLR core names datastore_
ckanext.datastore_search.only_use_engine Skip database insertion False
ckanext.datastore_search.min_rows_for_index Minimum rows to create index 100000
ckanext.datastore_search.redis.queue_name Redis queue name for core creation ckan_ds_create_index
ckanext.datastore_search.solr.configset SOLR configset name datastore_resource

SOLR Setup

Requires creating a configset directory and copying managed-schema and solrconfig.xml from the extension’s config/solr directory.

License

AGPL-3.0

Version
Version release date
(not set)
Contact name
Open Data Canada (TBS)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Copy managed-schema and solrconfig.xml from extension to SOLR configsets directory. Run jobs worker: ckan -c jobs worker ckan_ds_create_index_callback

Plugins to configure (ckan.ini)
datastore_search
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions