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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ckanext_or_facet-0.3.0.post1.tar.gz.

File metadata

File hashes

Hashes for ckanext_or_facet-0.3.0.post1.tar.gz
Algorithm Hash digest
SHA256 239943fe3f1287f0652356981e237ff8c6e7c30f8c672cee0599517c016aef39
MD5 a33ada0892970420e40e1b4b1f4541db
BLAKE2b-256 24fc7d20137209326cbfe555102dfb4f9790d3882c14f33a04c3841abb03160f

See more details on using hashes here.

File details

Details for the file ckanext_or_facet-0.3.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_or_facet-0.3.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac247cb7e7bb13e2d8f2658cd73adb874ec42ec15c1958cd182d9915e992c1b
MD5 cbd6d694c30c12791763d75edae6d89a
BLAKE2b-256 af38f932f8fe370776a3d4707d9dfd7317bc20bebd2ebe72d17322df72e500b9

See more details on using hashes here.

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