I have created a search template following docs like:
POST _scripts/<templateid> { "script": { "lang": "mustache", "source": { "query": { "match": { "title": "{{query_string}}" } } } } }
but now i want to access this search template(use it) from my react application.
Can I send a fetch to localhost:9200/_search/template.
Is this even possible from front end?
if yes how can it be done as a fetch call?
Thanks a lot.