Skip to main content

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:

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)

Source distribution for dbnomics-solr 1.1.19
File Size Uploaded
dbnomics_solr-1.1.19.tar.gz 51.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbnomics-solr 1.1.19
File Interpreter ABI Platform
dbnomics_solr-1.1.19-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.19 This release

2 release files

1.1.18

2 release files

1.1.17

2 release files

1.1.16

2 release files

1.1.14

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

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