So, if I understood your approach in the right way ... I should build a new Rest Action like "_search_and_return_source" that proxies the original _search one?
I've already read those two articles and I've set up my development environment with the help of those ;) Am Donnerstag, 5. Juni 2014 19:55:06 UTC+2 schrieb Ivan Brusic: > > If you are only modifying the REST API calls and not the Java API, such a > plugin should be easy. You are not creating a new type of action, merely > using the current search one, but changing the output format. > > Here are two tutorials on simple REST plugins: > > http://jprante.github.io/lessons/2012/03/27/Writing-a-simple-plugin-for-Elasticsearch.html > http://blog.brusic.com/2011/09/create-pluggable-rest-endpoints-in.html > > Hopefully the content is not too old. Base the plugin around the > existing RestSearchAction, but in the handleRequest method, instead of > returning the results directly, you can modify them before. > > Cheers > > Ivan > > > On Thu, Jun 5, 2014 at 10:45 AM, Mario Mueller <[email protected] > <javascript:>> wrote: > >> Hey folks, >> >> I kindly ask for a hint to achieve the following thing: >> >> The goal is to deliver only a json array of source objects to the client. >> The php app that sits on the other side uses JMS\Serializer to deserialize >> the response into entities. At the moment the app needs to take an overhead >> to derserialize it, extract the source and serialize it again. Then the >> serialized stuff is passed to the entity deserializer. That's really >> painful. >> >> I've found a thread that suggests a proxy in between to handle this type >> of problem, but this is not possible in our env. >> >> The real question is: Is this achievable by writing a plugin? And if so, >> what type of plugin? I've looked at the RestFilter, but I don't know if >> this is the right way to go... >> >> Any hints are welcome! >> >> Regards, >> Mario >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/6844c290-e7f8-46d7-b5b3-27cab18fb706%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/6844c290-e7f8-46d7-b5b3-27cab18fb706%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8158ba2e-55e1-4c1b-b918-ee33000800a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
