@@ -1308,34 +1308,6 @@ def get_script(self, id, params=None):
13081308 return self .transport .perform_request ('GET' , _make_path ('_scripts' , id ),
13091309 params = params )
13101310
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-
13391311 @query_params ()
13401312 def delete_script (self , id , params = None ):
13411313 """
0 commit comments