GET /_xpack/security/user/
GET /_xpack/security/role/
POST /_aliases
{
"actions" : [
{ "add" : { "indices" : ["hotel", "hotel2"], "alias" : "alias1" } }
]
}
PUT _xpack/watcher/watch/my-watch1
{
"trigger": {
"schedule": {
"interval": "30m"
}
},
"input": {
"http": {
$USER = "elastic"
$PASS = "changeme"
$secpasswd = ConvertTo-SecureString $PASS -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($USER, $secpasswd)
$uri = "http://localhost:9200/_msearch"
# make sure to add extra epmty line in $body
DELETE test
PUT test
{
"mappings": {
"my_type": {
"numeric_detection": true
}
GET /hotel/_search
{
"query": {
"multi_match" : {
"query": "tofu ramen Yakitori",
"type": "best_fields",
"fields": [ "dinner_menu", "lunch_menu" ],
"tie_breaker": 0.3,
"operator": "and"
# note that elasticsearch/config/test.txt should exist
PUT /test
{
"settings": {
"analysis": {
"filter": {
"my_synonym_filter": {
"type": "synonym",
delete t
PUT /t
{
"settings": {
"index": {
"analysis": {
"filter": {
"engram": {
"type": "edgeNGram",
DELETE a2
PUT a2
{
"mappings": {
"a": {
"properties": {
"created": {
"type": "date"
DELETE test4
PUT /test4
{
"mappings": {
"test": {
"properties": {
"name": {
"type": "text",