We expose elasticsearch to client applications via our custom api service; our endpoint is /search
instead of /_search
that elasticsearch.js client expects. How do I tell the elasticsearch.js
client to use /search
endpoint? I only see an option to provide the host url, not the actual endpoint.
In other words, if I specify host as 'myelastic.com' then the elasticsearch.js client will post the queries to http://myelastic.com/_search
and I need it to post queries to http://myelastic.com/search
(no underscore)