Skip to content

Getting Started

Ray Liu edited this page Oct 19, 2024 · 4 revisions

Install Elasticsearch

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)

Install using Docker

See the T-Rex-Fossil repo

Install Locally

Note: this project was built with Elasticsearch 7

  1. Download the Elasticsearch binary
  2. Unzip
  3. Enter into the unzipped folder
  4. 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
  1. 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
  1. 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"
  }
}
  1. Restore the Snapshot

    If you use any GUI client i.e. elasticvue, you likely could do this via their interface

Clone this wiki locally