COG - Elasticsearch
Elasticsearch is a distributed RESTful search engine built for the cloud. Features include:
- Distributed and Highly Available, Search Engine.
- Multi Tenant.
- Document oriented.
- Reliable, Asynchronous Write Behind for long term persistency.
- (Near) Real Time Search.
COG - Elasticsearch includes:
- Elasticsearch 7.2
- 64-bit Linux
Support
For bug reports, feature requests, or general questions, please contact us.
Directions
- Launch AMI from the Amazon Marketplace
- SSH into your instance as the ec2-user user.
- Elasticsearch is already running and listening on port 9200
- Edit "/etc/elasticsearch/elasticsearch.yml" if you want to change options.
- Restart server with "
/etc/init.d/elasticsearch restart
"
- Restart server with "
Getting Started with Elasticsearch
COG - Elasticsearch is already up and running when you start an instance. Elasticsearch provides a very comprehensive and powerful REST API that you can use to interact with your cluster.
See: Elasticsearch documentation for comprehensive documentation.
Quick Start for COG - Elasticsearch
Among the few things that can be done with the API are as follows:
Cluster Health
curl -X GET "localhost:9200/_cat/health?v"
List Indices
curl -X GET "localhost:9200/_cat/indices?v"
Create an Index
curl -X PUT "localhost:9200/customer?pretty"
curl -X GET "localhost:9200/_cat/indices?v"
Index and Query a Document
curl -X PUT "localhost:9200/customer/_doc/1?pretty" -H 'Content-Type: application/json' -d'
{
"name": "John Doe"
}
'
curl -X GET "localhost:9200/customer/_doc/1?pretty"
Delete an Index
curl -X DELETE "localhost:9200/customer?pretty"
curl -X GET "localhost:9200/_cat/indices?v"