Load JSON files that made by wiki-extractor-rs to search engines. Now, the tool support only JSON files that are created wiki-extractor-rs default settings.
- Rust nightly : elasticsearch-rs support only nightly rustc
- Elasticsearch >=7.x
- Azure Cognitive Search
Sample schema and setting yaml in sample directory.
For Elasticsearch, sample index settings/mappings in ./sample/elasticsearch directory. For Azure Cognitive Search, sample index settings/mappings in ./sample/azure_cognitive_search directory.
The command will create an index with with schema json if the index doesn't exist.
Show help with the following command::
$ ./bin/wiki-json-loader -h
$ ./wiki-json-loader -c <SEARCH_ENGINE_CONFIG> -s <SEARCH_ENGINE_TYPE> <INPUT_DIR>