-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
Ray Liu edited this page Oct 19, 2024
·
4 revisions
Note: you can access read-only preview T-Ragx Elasticsearch services at https://t-ragx-fossil.rayliu.ca
and https://t-ragx-fossil2.rayliu.ca
(But you will need a personal Elasticsearch service to add your in-task memories)
See the T-Rex-Fossil repo
Note: this project was built with Elasticsearch 7
- Download the Elasticsearch binary
- Unzip
- Enter into the unzipped folder
- Install the plugins
bin/elasticsearch-plugin install repository-s3
bin/elasticsearch-plugin install analysis-icu
bin/elasticsearch-plugin install analysis-kuromoji
bin/elasticsearch-plugin install analysis-smartcn
-
Add the S3 keys
This read-only key will help you connect to the snapshot
bin/elasticsearch-keystore add s3.client.default.access_key
004ad17c654fc040000000005
bin/elasticsearch-keystore add s3.client.default.secret_key
K004RP2lwML0oH53L1PdouiSXOxtYDM
- Add the snapshot
curl -X PUT "http://localhost:9200/_snapshot/public_t_ragx_translation_memory" -H "Content-Type: application/json" -d "{\"type\":\"s3\",\"settings\":{\"bucket\":\"t-ragx-public\",\"base_path\":\"elastic\",\"endpoint\":\"s3.us-west-004.backblazeb2.com\"}}"
Note: this is the JSON body:
{
"type": "s3",
"settings": {
"bucket": "t-ragx-public",
"base_path": "elastic",
"endpoint": "s3.us-west-004.backblazeb2.com"
}
}
-
Restore the Snapshot
If you use any GUI client i.e. elasticvue, you likely could do this via their interface