-
Notifications
You must be signed in to change notification settings - Fork 3
Getting Started
Ray Liu edited this page Mar 3, 2024
·
1 revision
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
(The snapshot is stored on IDrive e2 which is apparently not compatible with S3 enough for read-only Elastic S3 repo to work)
This read-only key will help you connect to the snapshot
bin/elasticsearch-keystore add s3.client.default.access_key
CG4KwcrNPefWdJcsBIUp
bin/elasticsearch-keystore add s3.client.default.secret_key
Cau5uITwZ7Ke9YHKvWE9cXuTy5chdapBLhqVaI3C
- 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\":\"o3t0.or.idrivee2-37.com\"}}"
Note: this is the JSON body:
{
"type": "s3",
"settings": {
"bucket": "t-ragx-public",
"base_path": "elastic",
"endpoint": "o3t0.or.idrivee2-37.com"
}
}
-
Restore the Snapshot
If you use any GUI client i.e. elasticvue, you likely could do this via their interface