call custom rest endpoint from java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

call custom rest endpoint from java

Alexandra
This post has NOT been accepted by the mailing list yet.
Hello,

I am currently writing a custom plugin for elasticsearch which exposes a rest enpoint. This endpoint can be called with curl like this :
curl -XGET 'http://localhost:9200/lt-dev_terminology_v1/english/_terminology?segment=seventy&analyzer=en_analyzer'

My question is how can I call the same thing from java and map the response to an object ?


Thanks,
Ale