Kahi plugin to insert and update works to elasticsearch
Project description
Kahi ElasticSearch works plugin
Kahi will use this plugin to insert works information from kahi into elasticsearch database.
Description
Plugin that read the information from a mongodb database with information in colav database to insert the information of the research products in elastic search. This serves as a solution to the uniocity problem when there's no DOI available.
Installation
You could download the repository from github. Go into the folder where the setup.py is located and run
pip3 install .
From the package you can install by running
pip3 install kahi_elasticsearch_works
Dependencies
Software dependencies will automatically be installed when installing the plugin. For the data dependencies the user must have the output of any Kahi's work plugin with the resulting database with the academic works.
Usage
To use this plugin you must have kahi installed in your system and construct a yaml file such as
config:
database_url: localhost:27017
database_name: kahi
log_database: kahi_log
log_collection: log
workflow:
elasticsearch_works:
es_url: http://localhost:9200
es_user: elastic
es_password: colav
task: delete
verbose: 5
elasticsearch_works:
es_url: http://localhost:9200
es_user: elastic
es_password: colav
task: bulk_insert
bulk_size: 100
verbose: 5
The task options are:
- delete: deletes everythin in the elasticsearch database
- bulk_insert: inserts the registers from kahi's resulting database in chunks of bulk_size
License
BSD-3-Clause License
Links
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 kahi_elasticsearch_works-0.1.0b0.tar.gz
.
File metadata
- Download URL: kahi_elasticsearch_works-0.1.0b0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7c47794e72282c2e0d27ef81682c649afdba693a823ce33c2613fd6eb8c4960 |
|
MD5 | 49ec9b9d35b502f819d52255184dad20 |
|
BLAKE2b-256 | 40287da253d6adaefd78800e659deb469a9589129f39cf08aed659647e653caa |
File details
Details for the file Kahi_elasticsearch_works-0.1.0b0-py3-none-any.whl
.
File metadata
- Download URL: Kahi_elasticsearch_works-0.1.0b0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e94c3e92887929527f6206c0c081392bada8292a3f7aa191bbe159bde492ba7 |
|
MD5 | 52b767e862b802748ed59faeb158a577 |
|
BLAKE2b-256 | cad5902bd87c5259a2a665320c50c658deb351b767e6fccfe9fadec7ef71cba6 |