This file contains hidden or 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/health | |
GET _cat/indices | |
GET /_cat/plugins | |
DELETE melimemo | |
PUT melimemo |
This file contains hidden or 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
PUT /test { | |
"mappings" : { | |
"my_type" : { | |
"dynamic_templates" : [ | |
{ | |
"my_integer_fields" : { | |
"match" : "i_*", | |
"mapping" : { "type" : "integer" } | |
} | |
}, |
This file contains hidden or 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
# on port 9201 | |
DELETE /index_es1 | |
PUT /index_es1 | |
{ | |
"settings": { | |
"number_of_shards": 1 | |
, "number_of_replicas": 0 | |
} | |
This file contains hidden or 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
PUT /log | |
{ | |
"mappings": { | |
"log": { | |
"properties": { | |
"host": { | |
"type": "string", | |
"index": "not_analyzed" | |
} | |
} |
This file contains hidden or 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
# Start | |
PUT _template/my_data_template1 | |
{ | |
"template": "my_data_*", | |
"settings": { | |
"number_of_shards": 1 |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import sys | |
import time | |
import json | |
from collections import defaultdict | |
from random import randint, choice | |
from datetime import datetime | |
startTime = datetime.now() |
This file contains hidden or 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
PUT issue | |
{ | |
"settings": { | |
"number_of_replicas": 0, | |
"number_of_shards": 1 | |
}, | |
"mappings": { | |
"typ": { | |
"properties": { |
This file contains hidden or 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 adns_suggest_test | |
PUT /adns_suggest_test | |
{ | |
"settings": { | |
"analysis": { | |
"filter": { | |
"world_separator_filter": { | |
"catenate_all": "true", | |
"type": "word_delimiter" |