Call custom rest endpoint from java


(Alexandra) #1

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


(system) #2