Metadata-Version: 2.1
Name: ckanext-or_facet
Version: 0.3.0.post1
Summary: Combine search facets using OR operator
Author-email: DataShades <datashades@linkdigital.com.au>, Sergey Motornyuk <sergey.motornyuk@linkdigital.com.au>
Maintainer-email: DataShades <datashades@linkdigital.com.au>
License: AGPL
Project-URL: Homepage, https://github.com/DataShades/ckanext-or_facet
Keywords: CKAN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typing-extensions
Provides-Extra: dev
Requires-Dist: pytest-ckan ; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest-ckan ; extra == 'test'

[![Tests](https://github.com/DataShades/ckanext-or_facet/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/DataShades/ckanext-or_facet/actions)


# 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:
   ```sh
   pip install ckanext-or-facet
   ```


1. Add ``or_facet`` to the ``ckan.plugins`` setting in CKAN config file

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




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