https://github.com/minhd/solr-import-export-json
A tool to import and export json documents from Apache SOLR
https://github.com/minhd/solr-import-export-json
export-json import-json-from-file python3 solr
Last synced: 4 months ago
JSON representation
A tool to import and export json documents from Apache SOLR
- Host: GitHub
- URL: https://github.com/minhd/solr-import-export-json
- Owner: minhd
- License: mit
- Created: 2020-02-13T04:45:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T01:50:04.000Z (over 2 years ago)
- Last Synced: 2024-06-14T01:59:52.131Z (about 2 years ago)
- Topics: export-json, import-json-from-file, python3, solr
- Language: Python
- Size: 2.04 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solr-import-export-json

A tool to import and export json documents from Apache SOLR
## Requirements
Python 3
```
python3 -v
Python 3.7.4
```
## Installation
```
make install
```
# Usage
use solr_export to export a solr_url to a file
```
venv/bin/python -m src.solr_export --help
Usage: solr_export.py [OPTIONS]
Export solr collection to a file
Options:
-s, --solr_url TEXT SOLR URL, including the collection eg.
http://localhost:8983/solr/example
-f, --file_path TEXT Output File Path
-r, --rows INTEGER Number of rows per batch
-e, --exclude_pattern TEXT Exclude
-d, --debug / --no-debug Debug
--help Show this message and exit.
```
use solr_import to import a file into a solr instance
```
venv/bin/python -m src.solr_import --help
Usage: solr_import.py [OPTIONS]
Import to a solr collection from a file
Options:
-s, --solr_url TEXT SOLR URL, including the collection eg.
http://localhost:8983/solr/example
-f, --file_path TEXT Output File Path
-r, --rows INTEGER Number of rows per batch
-d, --debug / --no-debug Debug
--help Show this message and exit.
```