You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ashish Mukherjee <as...@gmail.com> on 2015/03/10 18:34:48 UTC

Chaining components in request handler

Hello,

I would like to create a request handler which chains components in a
particular sequence to return the result, similar to a Unix pipe.

eg. Component 1 -> result1 -> Component 2 -> result2

result2 is final result returned.

Component 1 may be a standard component, Component 2 may be out of the box.

Is there any tutorial which describes how to wire together components like
this in a single handler?

Regards,
Ashish

Re: Chaining components in request handler

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Ok. Components then. Defined in solrconfig.xml. You can
prepend/append/replace the standard list.

Try that and see if that's enough.

Regards,
   Alex.
----
Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 10 March 2015 at 14:03, Ashish Mukherjee <as...@gmail.com> wrote:
> Would like to do it during querying.
>
> Thanks,
> Ashish
>
> On Tue, Mar 10, 2015 at 11:07 PM, Alexandre Rafalovitch <ar...@gmail.com>
> wrote:
>
>> Is that during indexing or during query phase?
>>
>> Indexing has UpdateRequestProcessors (e.g.
>> http://www.solr-start.com/info/update-request-processors/ )
>> Query has Components (e.g. Faceting, MoreLIkeThis, etc)
>>
>> Or something different?
>>
>> Regards,
>>    Alex.
>> ----
>> Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
>> http://www.solr-start.com/
>>
>>
>> On 10 March 2015 at 13:34, Ashish Mukherjee <as...@gmail.com>
>> wrote:
>> > Hello,
>> >
>> > I would like to create a request handler which chains components in a
>> > particular sequence to return the result, similar to a Unix pipe.
>> >
>> > eg. Component 1 -> result1 -> Component 2 -> result2
>> >
>> > result2 is final result returned.
>> >
>> > Component 1 may be a standard component, Component 2 may be out of the
>> box.
>> >
>> > Is there any tutorial which describes how to wire together components
>> like
>> > this in a single handler?
>> >
>> > Regards,
>> > Ashish
>>

Re: Chaining components in request handler

Posted by Ashish Mukherjee <as...@gmail.com>.
Would like to do it during querying.

Thanks,
Ashish

On Tue, Mar 10, 2015 at 11:07 PM, Alexandre Rafalovitch <ar...@gmail.com>
wrote:

> Is that during indexing or during query phase?
>
> Indexing has UpdateRequestProcessors (e.g.
> http://www.solr-start.com/info/update-request-processors/ )
> Query has Components (e.g. Faceting, MoreLIkeThis, etc)
>
> Or something different?
>
> Regards,
>    Alex.
> ----
> Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
> http://www.solr-start.com/
>
>
> On 10 March 2015 at 13:34, Ashish Mukherjee <as...@gmail.com>
> wrote:
> > Hello,
> >
> > I would like to create a request handler which chains components in a
> > particular sequence to return the result, similar to a Unix pipe.
> >
> > eg. Component 1 -> result1 -> Component 2 -> result2
> >
> > result2 is final result returned.
> >
> > Component 1 may be a standard component, Component 2 may be out of the
> box.
> >
> > Is there any tutorial which describes how to wire together components
> like
> > this in a single handler?
> >
> > Regards,
> > Ashish
>

Re: Chaining components in request handler

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Is that during indexing or during query phase?

Indexing has UpdateRequestProcessors (e.g.
http://www.solr-start.com/info/update-request-processors/ )
Query has Components (e.g. Faceting, MoreLIkeThis, etc)

Or something different?

Regards,
   Alex.
----
Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 10 March 2015 at 13:34, Ashish Mukherjee <as...@gmail.com> wrote:
> Hello,
>
> I would like to create a request handler which chains components in a
> particular sequence to return the result, similar to a Unix pipe.
>
> eg. Component 1 -> result1 -> Component 2 -> result2
>
> result2 is final result returned.
>
> Component 1 may be a standard component, Component 2 may be out of the box.
>
> Is there any tutorial which describes how to wire together components like
> this in a single handler?
>
> Regards,
> Ashish