Created
April 7, 2013 14:12
-
-
Save Mpdreamz/5330654 to your computer and use it in GitHub Desktop.
Template warmers not returned on get template
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
--- Request Put Template | |
PUT http://localhost:9200/_template/put-template-with-warmers?pretty=true HTTP/1.1 | |
Accept: application/json | |
Content-Type: application/json | |
Host: localhost:9200 | |
Content-Length: 172 | |
Expect: 100-continue | |
{ | |
"template": "donotinfluencothertests2", | |
"order": 0, | |
"settings": {}, | |
"mappings": {}, | |
"warmers": { | |
"matchall": { | |
"types": [ | |
"elasticsearchprojects" | |
], | |
"source": { | |
"query": { | |
"match_all": {} | |
} | |
} | |
} | |
} | |
} | |
--- Reponse Put Template | |
HTTP/1.1 200 OK | |
Content-Type: application/json; charset=UTF-8 | |
Content-Length: 45 | |
{ | |
"ok" : true, | |
"acknowledged" : true | |
} | |
--- Request Get Template | |
GET http://localhost:9200/_template/put-template-with-warmers?pretty=true HTTP/1.1 | |
Accept: application/json | |
Content-Type: application/json | |
Host: localhost:9200 | |
--- Response Get Template | |
HTTP/1.1 200 OK | |
Content-Type: application/json; charset=UTF-8 | |
Content-Length: 153 | |
{ | |
"put-template-with-warmers" : { | |
"template" : "donotinfluencothertests2", | |
"order" : 0, | |
"settings" : { }, | |
"mappings" : { } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment