This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: | |
Under the config/scripts folder, create a file named helloworld.mvel | |
Step 2: | |
Edit the file helloworld.mvel and put this and save: | |
"hello world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install this plugin on all nodes: | |
https://github.com/elasticsearch/elasticsearch-cloud-aws | |
Then in your elasticsearch.yml file (on all nodes), setup your AWS/S3 credentials: | |
cloud: | |
aws: | |
access_key: your_access_key | |
secret_key: your_secret_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE localhost:9200/test | |
curl -XPUT localhost:9200/test/doc/1 -d '{ "a": "1" }' | |
curl -XPUT localhost:9200/test/doc/2 -d '{ "a": "1" }' | |
curl -XPUT localhost:9200/test/doc/3 -d '{ "a": "1" }' | |
curl -XPOST "localhost:9200/test/_search?search_type=count&pretty" -d '{ | |
"aggs": { |