Skip to main content

Combine search facets using OR operator

Project description



To install ckanext-or-facet:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-or_facet Python package into your virtual environment:

    pip install ckanext-or-facet
  3. Add or_facet to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  4. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Config Settings

Document any optional config settings here. For example:

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

Development Installation

To install ckanext-or_facet for development, activate your CKAN virtualenv and do:

git clone
cd ckanext-or_facet
python develop

Running the Tests

To run the tests, do:

pytest --ckan-ini test.ini

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.0.4.tar.gz (19.6 kB view hashes)

Uploaded Source

Built Distribution

ckanext_or_facet-0.0.4-py3-none-any.whl (18.3 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