Skip to content

Latest commit

 

History

History

opensearch-cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

About CU Get Reg Index in Opensearch

In Opensearch, we employ names to differentiate environments that utilize an index. For instance, the development environment is labeled as 'course-dev,' while the beta environment is denoted as 'course-beta.

Installing

  1. Copy opensearch.example.yaml in config and paste it in the same location then remove .example from its name.
  2. update opensearch.yaml with a valid configuration

Create Index

go run ./cli/app.go index create --index-name=<index name> --filename=<filename> --debug=<true/false>
name description
index name name of index
filename name of index file in ./cli/index (json)
debug enable debug mode (true/false)

Example

Create index using course-index.json in dev directory

go run ./cli/app.go index create --index-name=course-dev-1 --filename=dev/course-index.json