Skip to main content
https://github.com/DataShades/ckanext-resource_indexer/actions/workflows/test.yml/badge.svg

ckanext-resource_indexer

Index content of resources in addition to metadata.

Important

master branch of this repository is unstable. Always install ckanext-resource-indexer using pip(pip install ckanext-resource-indexer) unless you are going to change extension’s source code for your need.

Config Settings

# The size treshold(MB) for remote resources
# (optional, default: 4).
ckanext.resource_indexer.max_remote_size = 4

# Make an attempt to index remote files(fetch into tmp folder
# using URL)
# (optional, default: false).
ckanext.resource_indexer.allow_remote = 1

# List of lowercased resource formats that should be
# indexed. Currently only `pdf` and `txt` supported
# (optional, default: None)
ckanext.resource_indexer.indexable_formats = txt pdf

# Field containing data extacted from the file in addition to the
# general `text` field
# (optional, default: None)
ckanext.resoruce_indexer.index_field = extras_res_attachment

# Boost matches by resource's content. Set values greater that 1 in order #
# to promote such matches and value between 0 and 1 in order to put such #
# matches further in search results. Works only when using custom index
# field(ckanext.resoruce_indexer.index_field)
# (optional, default: 1)
ckanext.resoruce_indexer.search_boost = 0.5

Development Installation

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

git clone https://github.com/DataShades/ckanext-resource_indexer.git
cd ckanext-resource_indexer
python setup.py develop

Add resource_indexer (and optionaly pdf_resource_indexer or plain_resource_indexer) to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

Running the Tests

To run the tests, do:

pytest --ckan-ini test.ini

AWS Linux

sudo yum install -y pulseaudio-libs-devel python-devel libxml2-devel libxslt-devel poppler poppler-utils poppler-cpp-devel

Metadata

Release files for ckanext-resource-indexer 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ckanext-resource-indexer 0.1.1
File Size Uploaded Provenance Actions
ckanext-resource_indexer-0.1.1.tar.gz 21.5 kB Without provenance Details for ckanext-resource_indexer-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-resource-indexer 0.1.1
File Interpreter ABI Platform Actions
ckanext_resource_indexer-0.1.1-py3-none-any.whl Python 3 none any Details for ckanext_resource_indexer-0.1.1-py3-none-any.whl

Total release size: 42.9 kB

Release files / ckanext-resource_indexer-0.1.1.tar.gz

Download URL ckanext-resource_indexer-0.1.1.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
93241589a7c285d7288b64723d7afa1e46485535ff1e597a030b9bcdc76ecfdc
BLAKE2b-256 checksum
How to use checksums
0aa95cc4ac1d7429a97ca87e450724df8365d1d264c85150673425d6c0cfd810
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / ckanext_resource_indexer-0.1.1-py3-none-any.whl

Download URL ckanext_resource_indexer-0.1.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1e9f869fbaf5ae0c25a3e8bd605492c4c984100ec356858193c141ee9a68004
BLAKE2b-256 checksum
How to use checksums
fa19965f4979dffaedc6bfaa95dce8add76f137ca5f21422d0238120384ebb4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for ckanext-resource-indexer 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page