Skip to content

Instantly share code, notes, and snippets.

@Mpdreamz
Created April 7, 2013 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mpdreamz/5330654 to your computer and use it in GitHub Desktop.
Save Mpdreamz/5330654 to your computer and use it in GitHub Desktop.
Template warmers not returned on get template
--- 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