You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by wheli <mi...@medfx.com> on 2017/01/13 17:14:57 UTC

Elastic Search GET_BY_ID

Having some issues getting the GET_BY_ID search working against an elastic
search instance (http://camel.apache.org/elasticsearch.html). Not really
getting back the response that I would expect...

I am using camel 2.16.1 and Spring DSL.

The relevant part of my route is:



I have tried multiple different IDs and indexes and am debugging code with a
break point within my "processGetByIdRequest" method:



When I inspect the exchange, the "in" message is an object of type
"GetResponse", not "GetResult" as the documentation states. The "body" of
the "in" messages is an object of type "PlainActionFuture" with a bunch of
data related to my request, but not anything that I would expect to be in a
response (other fields from my indexed objects).

Am I completely misunderstanding something? Any ideas? I have got my INDEX
and SEARCH code working and can see my indexed objects in elastic search
when viewing through kibana.




--
View this message in context: http://camel.465427.n5.nabble.com/Elastic-Search-GET-BY-ID-tp5792533.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Elastic Search GET_BY_ID

Posted by wheli <mi...@medfx.com>.
Just in case anyone needs it, i was able to grab the json response via the
following java:





--
View this message in context: http://camel.465427.n5.nabble.com/Elastic-Search-GET-BY-ID-tp5792533p5792535.html
Sent from the Camel - Users mailing list archive at Nabble.com.