ckanext-similar-datasets
CKAN plugin to show similar datasets. Shows similar datasets in the dataset detail view using SOLR’s MoreLikeThisHandler (MLT) feature.
Originally part of ckanext-discovery (stadt-karlsruhe). Reimplemented as a standalone extension.
Requirements
- CKAN 2.9 or later (tested with 2.9, migration for 2.10.4 available)
- SOLR with MoreLikeThisHandler configured
- SOLR schema.xml must have termVectors=”true” on the text field
Configuration
Add the following to your SOLR solrconfig.xml:
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
</requestHandler>
Add termVectors to the text field in schema.xml:
<field name="text" type="text" indexed="true" stored="false" multiValued="true" termVectors="true"/>
In ckan.ini:
ckan.plugins = similar_datasets
ckanext.similar_datasets.max_num = 5
The max_num setting controls the maximum number of similar datasets to display (default: 5).
License
AGPL-3.0. Copyright (C) 2021 Ondics GmbH.