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.
- Copy
opensearch.example.yaml
inconfig
and paste it in the same location then remove.example
from its name. - update
opensearch.yaml
with a valid configuration
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 ) |
go run ./cli/app.go index create --index-name=course-dev-1 --filename=dev/course-index.json