We are working on a rest client based on Java. It has it's own API and also
it has a bridge that can be plugged to native Java API, so you can use it
as is over a rest endpoint.
BUT it is not ready for production though give us some weeks it will be
Checkout source code you will find some tricks about your question.
On Tuesday, July 31, 2012 4:09:24 PM UTC+3, Aykut Uysal wrote:
Decision of using REST is made a little time ago. It's part of a large
project and I'm doing some research about mapping options. I just
wondered if there is a way to use Java API domain objects like
SearchResponse for mapping the response json since it already has the
structure that we need.
I don't understand.
Why don't you use Search Java API directly ?
Twitter : @dadoonet / @elasticsearchfr
a écrit :
I'm querying elasticsearch through its rest interface and getting a
json result. I wonder if there is a common way to map returning json
string into SearchResponse object which is available in Java API.
I've found SearchResponse.readFromResponse() and readFrom() methods.
So far I couldn't make them work and while doing some research I've
also found kimchy saying 'There is no way to parse a json to a
SearchResponse' in this thread :
Can someone clarify this issue for me?