Skip to main content

Export Solr Nodes to Elasticsearch Indexes

Project description

This will migrate a Solr node to an Elasticsearch index.

Requirements

  • Python 2.7+

    • elasticsearch

    • pysolr

Usage

usage: solr-to-es [-h] [--solr-query SOLR_QUERY]
                  [--rows-per-page ROWS_PER_PAGE] [--es-timeout ES_TIMEOUT]
                  solr_url elasticsearch_url elasticsearch_index doc_type

The following example will page through all documents on the local Solr node, node, and submit them to the local Elasticsearch server in the index es_index with a document type of solr_docs.

solr-to-es.py localhost:8983/solr/node localhost:9200 es_index solr_docs

solr_url is the url to your Solr node.

elasticsearch_url is the url of your Elasticsearch server.

elasticsearch_index is the index you will submit the Solr documents to on Elasticsearch.

doc_type is the type of document Elasticsearch should assume you are importing.

--solr-query defaults to *:*

--rows-per-page defaults to 500

--es-timeout defaults to 60

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

solr-to-es-0.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file solr-to-es-0.2.tar.gz.

File metadata

  • Download URL: solr-to-es-0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for solr-to-es-0.2.tar.gz
Algorithm Hash digest
SHA256 d3ef9ad5bbda52dbc1a802fac494080b8879770c187e7677d90a5da862b64515
MD5 ee2428b1a420268a682987fa202695bb
BLAKE2b-256 c7af529ecd1b380c4c3a390fce80d65dc4b18ce1253671c487950f925c499bfd

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