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
DELETE slow_test | |
PUT /slow_test | |
{ | |
"mappings": { | |
"test": { | |
"properties": { | |
"hotel_name": { | |
"type": "text", |
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
DELETE test | |
PUT test/ | |
{ | |
"settings" : { | |
"index" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 1 | |
} | |
} |
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
GET hotel2/_search | |
{ | |
"_source": [ | |
"created", | |
"created2" | |
], | |
"script_fields": { | |
"original_date": { | |
"script": { | |
"lang": "painless", |
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
GET _cat/plugins/ | |
# settings | |
PUT /kuro/ | |
{ | |
"settings": { | |
"index":{ | |
"analysis":{ | |
"analyzer" : { | |
"my_analyzer" : { |
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
# replace <alias_test> with your own <alias name> | |
GET _alias/alias_test | |
# replace <job1> with your own <job id> | |
# The get jobs API enables you to retrieve configuration information for jobs. | |
GET _xpack/ml/anomaly_detectors/job1 | |
# The get jobs API enables you to retrieve usage information for jobs. | |
GET /_xpack/ml/anomaly_detectors/job1/_stats |
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
delete old new | |
# alias sample | |
PUT old/test/1 | |
{ | |
"name" : "Tim" | |
} | |
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
delete old new | |
PUT old/test/1 | |
{ | |
"name" : "Sam" | |
} | |
POST _reindex | |
{ | |
"source": { |
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
# hdfs getconf -confKey fs.default.name | |
# when you run into error in connecting to hadoop, run above. | |
# Then the output is what you need to specify at uri in settngs. | |
PUT _snapshot/tomo_repository | |
{ | |
"type": "hdfs", | |
"settings": { | |
"uri": "hdfs://localhost:9000/", |
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
delete old | |
PUT old/test/1 | |
{ | |
"first_name" : "Sam" | |
} | |
GET old/_mapping | |
PUT old/_mapping/test |
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
#pattern 1 | |
POST _ingest/pipeline/_simulate | |
{ | |
"pipeline": { | |
"processors": [ | |
{ | |
"kv": { | |
"field": "http_message", | |
"field_split": " ", | |
"value_split": "" |
OlderNewer