However, if I run it through Kibana, I mean POST http://localhost:5601/elasticsearch/chef/issue/_search, I get a 404 error:
{
"statusCode": 404,
"error": "Not Found"
}
What am I doing wrong?
Note that I got this error the first time writing an app plugin for Kibana and using the es service. When I saw the 404 errors from the web console, then I tried to reproduce the error with curl.
Yes, exactly as I typed in my post. The only thing that changes is the url.
One more information if that can help:
If I use http://localhost:5601/elasticsearch/*/_search or http://localhost:5601/elasticsearch/chef/_search it works. I tried with different indexes and it works. The problem seems to be related to the doc_type.
Yes, I figured out something like that. As a workaround I changed my code for not hitting POST /{index}/{type}/search and it's working. Btw, is there any reason for not creating the proxy? Are you going to fix it? Thanks
If i add a new proxy like
createProxy(server, 'POST', '/{index}/{type}/{id}'),
then also i am able to post to elastic search. I am more keen in using this but only if it wont break anything. By break i mean any security that can be now be easily breached on inserting this proxy.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.