@@ -1308,34 +1308,6 @@ def get_script(self, id, params=None):
1308
1308
return self .transport .perform_request ('GET' , _make_path ('_scripts' , id ),
1309
1309
params = params )
1310
1310
1311
- @query_params ()
1312
- def put_template (self , id , body , params = None ):
1313
- """
1314
- Create a search template.
1315
- `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
1316
-
1317
- :arg id: Template ID
1318
- :arg body: The document
1319
- """
1320
- for param in (id , body ):
1321
- if param in SKIP_IN_PATH :
1322
- raise ValueError ("Empty value passed for a required argument." )
1323
- return self .transport .perform_request ('PUT' , _make_path ('_search' ,
1324
- 'template' , id ), params = params , body = body )
1325
-
1326
- @query_params ()
1327
- def get_template (self , id , params = None ):
1328
- """
1329
- Retrieve a search template.
1330
- `<http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html>`_
1331
-
1332
- :arg id: Template ID
1333
- """
1334
- if id in SKIP_IN_PATH :
1335
- raise ValueError ("Empty value passed for a required argument 'id'." )
1336
- return self .transport .perform_request ('GET' , _make_path ('_search' ,
1337
- 'template' , id ), params = params )
1338
-
1339
1311
@query_params ()
1340
1312
def delete_script (self , id , params = None ):
1341
1313
"""
0 commit comments