Yes. I have checked in some code for a simple action plugin. https://github.com/jprante/elasticsearch-simple-action-plugin
The plugin implements a simple "match_all" search action, by reusing much of the code of the search action. Best, Jörg On Thu, Sep 11, 2014 at 7:55 PM, Sandeep Ramesh Khanzode < k.sandee...@gmail.com> wrote: > Thanks for bearing with me till now :) Please provide one final input on > this issue. > > Is there any example for a custom search action? If not, can you please > provide some details on how I can implement one? > > Thanks, > Sandeep > > > On Thu, Sep 11, 2014 at 4:53 PM, joergpra...@gmail.com < > joergpra...@gmail.com> wrote: > >> You can not intercept the SearchResponse on the ES server itself. >> Instead, you must implement your custom search action. >> >> Jörg >> >> On Thu, Sep 11, 2014 at 10:00 AM, Sandeep Ramesh Khanzode < >> k.sandee...@gmail.com> wrote: >> >>> When you say, 'receive the SearchResponse', is that in the ES Server >>> node or the TransportClient node that spawned the request? I would want to >>> intercept the SearchResponse when created at the ES Server itself, since I >>> want to send the subset of Response to another process on the same node, >>> and it would not be very efficient to have the response sent back to the >>> client node only to be sent back again. >>> >>> Thanks, >>> Sandeep >>> >>> On Thu, Sep 11, 2014 at 12:43 PM, joergpra...@gmail.com < >>> joergpra...@gmail.com> wrote: >>> >>>> You can receive the SearchResponse, process the response, and return >>>> the response with whatever format you want. >>>> >>>> Jörg >>>> >>>> On Wed, Sep 10, 2014 at 11:59 AM, Sandeep Ramesh Khanzode < >>>> k.sandee...@gmail.com> wrote: >>>> >>>>> Hi Jorg, >>>>> >>>>> Thanks for the links. I was checking the sources. There are relevant >>>>> to my functional use case. But I will be using the TransportClient Java >>>>> API, not the REST client. >>>>> >>>>> Can you please tell me how I can find/modify these classes/sources to >>>>> get the appropriate classes for inctercepting the Search Response when >>>>> invoked from a TransportClient? >>>>> >>>>> >>>>> Thanks, >>>>> Sandeep >>>>> >>>>> On Wed, Aug 27, 2014 at 6:38 PM, joergpra...@gmail.com < >>>>> joergpra...@gmail.com> wrote: >>>>> >>>>>> Have a look at array-format or csv plugin, they are processing the >>>>>> SearchResponse to output it in another format: >>>>>> >>>>>> https://github.com/jprante/elasticsearch-arrayformat >>>>>> >>>>>> https://github.com/jprante/elasticsearch-csv >>>>>> >>>>>> Jörg >>>>>> >>>>>> >>>>>> On Wed, Aug 27, 2014 at 3:05 PM, 'Sandeep Ramesh Khanzode' via >>>>>> elasticsearch <elasticsearch@googlegroups.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Is there any action/module that I can extend/register/add so that I >>>>>>> can intercept the SearchResponse on the server node before the response >>>>>>> is >>>>>>> sent back to the TransportClient on the calling box? >>>>>>> >>>>>>> Thanks, >>>>>>> Sandeep >>>>>>> >>>>>>> -- >>>>>>> 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 elasticsearch+unsubscr...@googlegroups.com. >>>>>>> To view this discussion on the web visit >>>>>>> https://groups.google.com/d/msgid/elasticsearch/559a5c68-4567-425f-9842-7f2fe6755095%40googlegroups.com >>>>>>> <https://groups.google.com/d/msgid/elasticsearch/559a5c68-4567-425f-9842-7f2fe6755095%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 a topic in >>>>>> the Google Groups "elasticsearch" group. >>>>>> To unsubscribe from this topic, visit >>>>>> https://groups.google.com/d/topic/elasticsearch/o6RZL4KwJVs/unsubscribe >>>>>> . >>>>>> To unsubscribe from this group and all its topics, send an email to >>>>>> elasticsearch+unsubscr...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGJ_%3D5RnyFqMP_AX4744z6tdAp8cfLBi_OqzLM23_rqzw%40mail.gmail.com >>>>>> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGJ_%3D5RnyFqMP_AX4744z6tdAp8cfLBi_OqzLM23_rqzw%40mail.gmail.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 elasticsearch+unsubscr...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/elasticsearch/CAKnM90bENin_aU4AXa%3DTVHQ_SyTTn-89Rev5vjj3%3DoDikwstkQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/elasticsearch/CAKnM90bENin_aU4AXa%3DTVHQ_SyTTn-89Rev5vjj3%3DoDikwstkQ%40mail.gmail.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 a topic in the >>>> Google Groups "elasticsearch" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/elasticsearch/o6RZL4KwJVs/unsubscribe >>>> . >>>> To unsubscribe from this group and all its topics, send an email to >>>> elasticsearch+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGWm8upDW9De7OvkM0cps%2BEyn3goo7Tgy3jyqJ8Jz5Khw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGWm8upDW9De7OvkM0cps%2BEyn3goo7Tgy3jyqJ8Jz5Khw%40mail.gmail.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 elasticsearch+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elasticsearch/CAKnM90aQiQO-cFzVb3vi_h7Buf1NLyk_q3UOqLRMe0ZDsvQ_MA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/elasticsearch/CAKnM90aQiQO-cFzVb3vi_h7Buf1NLyk_q3UOqLRMe0ZDsvQ_MA%40mail.gmail.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 a topic in the >> Google Groups "elasticsearch" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/elasticsearch/o6RZL4KwJVs/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> elasticsearch+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEk0-VccZES3wNn8mEAbcuCJFV%3D8HKjw0udCAU-ysWXTA%40mail.gmail.com >> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEk0-VccZES3wNn8mEAbcuCJFV%3D8HKjw0udCAU-ysWXTA%40mail.gmail.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 elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CAKnM90ZFshVUHHQM6fd0K9VCa14n0MDzUCxtu6zYV4kFciuBSQ%40mail.gmail.com > <https://groups.google.com/d/msgid/elasticsearch/CAKnM90ZFshVUHHQM6fd0K9VCa14n0MDzUCxtu6zYV4kFciuBSQ%40mail.gmail.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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoENDoJG8Nkbd4%3Djn9kQH_O75pf5_ShaYy9rQy08NUYnvA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.