Skip to main content

Combine search facets using OR operator

Project description

Tests

ckanext-or_facet

Change logic of applying facets. With a bit of extra configuration, search for datasets, including any of applied facets, not necessary all of them

Installation

To install ckanext-or-facet:

  1. Install the ckanext-or_facet Python package:

    pip install ckanext-or-facet
    
  2. Add or_facet to the ckan.plugins setting in CKAN config file

  3. Starting from CKAN v2.10.4: Add ckan.search.solr_allowed_query_parsers = edismax bool to CKAN config file

Config Settings

# List of facets that are using OR when applied.
# (optional, default: empty list).
ckanext.or_facet.optional = tags res_format

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_or_facet-0.3.0.post1.tar.gz (20.1 kB view hashes)

Uploaded Source

Built Distribution

ckanext_or_facet-0.3.0.post1-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page