How to use template in elastic search

(Swapnil Shah) #1

Can I get syntax to implement template in elastic search ?

I have tried using following but no success

var templateRequest= new PutSearchTemplateDescriptor(new Id("my_template"));


var response = ElasticClient.PutSearchTemplate(templateRequest);

(Kallem Prathyusha) #2

@Swapnil_Shah Hi,Could you please specify which client you are using and what version?

(Prasanna Kumar) #3

@Kallem_Prathyusha We are using the latest version of NEST .net client.We figured out putsearchtemplate is probably a wrong method to call. but not sure what is the right way to call a registered template from NEST client.Any examples would be immensely helpful

(system) #4