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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file solr-to-es-0.1.tar.gz
.
File metadata
- Download URL: solr-to-es-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d288c4a5f355d3e0c4c6af689368faa2e9544bd2fe56fa14117295a39f2d809a |
|
MD5 | 0e65676d438b49619c82589b86fae91f |
|
BLAKE2b-256 | 7b22ec3d0f14aa0c7a68042849deea54149ff53e8051d71fcedd961c70bc2762 |
File details
Details for the file solr_to_es-0.1-py2.7.egg
.
File metadata
- Download URL: solr_to_es-0.1-py2.7.egg
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e948b520c962711db4cec3990a5073d8b2cb08e89d8036d21f0df1050437488 |
|
MD5 | 31434866c39d5b35b24a839363b27357 |
|
BLAKE2b-256 | 414acbf23da3ba9f86dd7450fcb0f2e82ae969846f95d0e77ebc8eb44a2c48e8 |