Replacing the GetResult / SearchResult impl. via DI?

(Mario Mueller) #1

Hey folks,

I'm using the Java client on an embedded running server (on a Wildfly 8,
standalone-full). To make my life easier for my usecase, I want to
implement a Result that is capable of using my gson provider (CDI) together
with a classname to get me the source not only as string, but as my bean of
choice. Is there any common way to overload the result set (maybe using
guice?) to make this possible to implement?

The hard way would be to write a delegating proxy for each step ... this
would work, but feels clumsy and is not a good architectural decision at

Thanks for any hint!

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2