DBnomics Solr
Index DBnomics data into Apache Solr for full-text and faceted search.
Requirements:
- a running instance of Apache Solr; at the time this documentation is written, we use the version 7.3.
See dbnomics-docker to run a local DBnomics instance with Docker that includes a service for Apache Solr.
Configuration
Environment variables:
DEBUG_PYSOLR: display pysolr DEBUG logging messages (cf https://github.com/django-haystack/pysolr)
Index a provider
Replace wto by the real provider slug in the following command:
dbnomics-solr index-provider /path/to/wto-json-data
Full mode vs incremental mode
When data is stored in a regular directory, the script always indexes all datasets and series of a provider. This is called full mode.
When data is stored in a Git repository, the script runs by default in incremental mode: it indexes only the datasets modified since the last indexation.
It is possible to force the full mode with the --full option.
Bare repositories
The script has an option --bare-repo-fallback which tries to add .git at the end of the storage dir name, if not found.
Remove all data from a provider
To remove all the documents related to a provider (type:provider, type:dataset and type:series):
dbnomics-solr --debug delete-provider --code <provider_code>
dbnomics-solr --debug delete-provider --slug <provider_slug>
# Examples:
dbnomics-solr --debug delete-provider --code WTO
dbnomics-solr --debug delete-provider --slug wto
Metadata
Release files for dbnomics-solr 1.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dbnomics_solr-1.1.19.tar.gz | 51.6 kB | Without provenance | Details for dbnomics_solr-1.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbnomics_solr-1.1.19-py3-none-any.whl | Python 3 | none | any | Details for dbnomics_solr-1.1.19-py3-none-any.whl |
Total release size: 96.9 kB
Release files / dbnomics_solr-1.1.19.tar.gz
| Download URL | dbnomics_solr-1.1.19.tar.gz |
|---|---|
| Size | 51.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c659cb720d5787dc0df71d277052e79d675b3219bf25bb52d893aacb2a455e7
|
|
BLAKE2b-256 checksum How to use checksums |
491813e5c0494273c54241435b8f9dcaa11d3912ab79fe0ac454627b09b532c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / dbnomics_solr-1.1.19-py3-none-any.whl
| Download URL | dbnomics_solr-1.1.19-py3-none-any.whl |
|---|---|
| Size | 45.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e94c606d1f4124a1d658a52cbb82db9eaacbd294468d12f2f75d356d60d85008
|
|
BLAKE2b-256 checksum How to use checksums |
be206a53972a61994001271cad4c31d2d8074b6c07370fd0f51321e94d0cac5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for dbnomics-solr 1.1.19
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.