ckanext-or-facet


Nameckanext-or-facet JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/DataShades/ckanext-or_facet
SummaryCombine search facets using OR operator
upload_time2024-04-01 13:22:21
maintainerNone
docs_urlNone
authorSergey Motornyuk
requires_python>=3.8
licenseAGPL
keywords ckan
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/DataShades/ckanext-or_facet",
    "name": "ckanext-or-facet",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "CKAN",
    "author": "Sergey Motornyuk",
    "author_email": "sergey.motornyuk@linkdigital.com.au",
    "download_url": "https://files.pythonhosted.org/packages/cd/33/e2bec2f58bf9b143196d0038363dabe5aaaa62b3e9b0e3d9b433936d7bff/ckanext-or_facet-0.3.0.tar.gz",
    "platform": null,
    "description": "[![Tests](https://github.com/DataShades/ckanext-or_facet/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/DataShades/ckanext-or_facet/actions)\n\n\n# ckanext-or_facet\n\n\nChange logic of applying facets. With a bit of extra configuration, search for\ndatasets, including **any** of applied facets, not necessary **all** of them\n\n\n## Installation\n\n\nTo install ckanext-or-facet:\n\n1. Install the ckanext-or_facet Python package:\n   ```sh\n   pip install ckanext-or-facet\n   ```\n\n\n1. Add ``or_facet`` to the ``ckan.plugins`` setting in CKAN config file\n\n1. **Starting from CKAN v2.10.4**: Add ``ckan.search.solr_allowed_query_parsers =\n   edismax bool`` to CKAN config file\n\n\n\n\n## Config Settings\n```ini\n# List of facets that are using OR when applied.\n# (optional, default: empty list).\nckanext.or_facet.optional = tags res_format\n```\n",
    "bugtrack_url": null,
    "license": "AGPL",
    "summary": "Combine search facets using OR operator",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/DataShades/ckanext-or_facet"
    },
    "split_keywords": [
        "ckan"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "48e8a19c244c57c5a52228cf6a8b4efd895fb524c94bd0e1e87a5ac631b2a2e5",
                "md5": "d85f5953e0067c4ceb9f0a19025c1e78",
                "sha256": "59d833d64d1f4358cc57e18692cd42bc570a2e64d9c369f3ce5fb72f35f9d00f"
            },
            "downloads": -1,
            "filename": "ckanext_or_facet-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d85f5953e0067c4ceb9f0a19025c1e78",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 18496,
            "upload_time": "2024-04-01T13:22:19",
            "upload_time_iso_8601": "2024-04-01T13:22:19.326271Z",
            "url": "https://files.pythonhosted.org/packages/48/e8/a19c244c57c5a52228cf6a8b4efd895fb524c94bd0e1e87a5ac631b2a2e5/ckanext_or_facet-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd33e2bec2f58bf9b143196d0038363dabe5aaaa62b3e9b0e3d9b433936d7bff",
                "md5": "78afbda6c5837a32b9122e09274bf1a9",
                "sha256": "84467054b113f49143b34a95afd2c93c1a738e3705f8b5e071a11bd8f6b8be59"
            },
            "downloads": -1,
            "filename": "ckanext-or_facet-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "78afbda6c5837a32b9122e09274bf1a9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19904,
            "upload_time": "2024-04-01T13:22:21",
            "upload_time_iso_8601": "2024-04-01T13:22:21.831233Z",
            "url": "https://files.pythonhosted.org/packages/cd/33/e2bec2f58bf9b143196d0038363dabe5aaaa62b3e9b0e3d9b433936d7bff/ckanext-or_facet-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-01 13:22:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "DataShades",
    "github_project": "ckanext-or_facet",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "lcname": "ckanext-or-facet"
}
        
Elapsed time: 0.21137s