Skip to main content

Index DBnomics data with Apache Solr for full-text and faceted search

Reason this release was yanked:

missing Solr commit

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbnomics-solr-1.1.8.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

dbnomics_solr-1.1.8-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file dbnomics-solr-1.1.8.tar.gz.

File metadata

  • Download URL: dbnomics-solr-1.1.8.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.10.5 Linux/5.10.0-14-amd64

File hashes

Hashes for dbnomics-solr-1.1.8.tar.gz
Algorithm Hash digest
SHA256 e3e0cbebd289b1af54999f6bab653a4f996169e20566a01d7d8812bd7b028e1f
MD5 5b91938eadc74e3e495ab7997208a3f3
BLAKE2b-256 e9994773b542065ec29e5a6badfcf7c40c11fe39427666af2d93866f4f4805a5

See more details on using hashes here.

File details

Details for the file dbnomics_solr-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: dbnomics_solr-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b2 CPython/3.10.5 Linux/5.10.0-14-amd64

File hashes

Hashes for dbnomics_solr-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8e3917b0e357924abb28d73617518233e64db6261bb0d3593426e7be2a791e40
MD5 35476acc46dfb102ef4033b0656e0329
BLAKE2b-256 516b4bb060033708a2b383f21bb90c9eb4165f63870d1265542258b039143810

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page