This will seem like a silly question, but I don't have much experience with
http requests/responses.
I am trying to run a query against elastic search using the Java
URLConnection API:
but this returns an error
URL es = new URL("http://localhostb:9200/messages/chat/_search -d
'{"query":{"term":{"from_jid":"from0"}}}'");
URLConnection yc = es.openConnection();
Can someone tell me what's wrong with this request?
This will seem like a silly question, but I don't have much experience with http requests/responses.
I am trying to run a query against elastic search using the Java URLConnection API:
but this returns an error
URL es = new URL("http://localhostb:9200/messages/chat/_search -d '{"query":{"term":{"from_jid":"from0"}}}'");
URLConnection yc = es.openConnection();
Can someone tell me what's wrong with this request?
Hi David, thanks for your response. Not a fan of reinventing the wheel.
I would like to make these searches over http rather than tcp. If I use ES
than it will be over tcp.
Sounds like I should use REST. But how do I use REST within Java to talk
to the ES Server?
Hi David, thanks for your response. Not a fan of reinventing the wheel.
I would like to make these searches over http rather than tcp. If I use ES than it will be over tcp.
Sounds like I should use REST. But how do I use REST within Java to talk to the ES Server?
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.