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 michael8 <mi...@saracatech.com> on 2009/09/12 00:04:14 UTC

"standard" requestHandler components

Hi, 

I have a newbie question about the 'standard' requestHandler in
solrconfig.xml.  What I like to know is where is the config information for
this requestHandler kept?  When I go to http://localhost:8983/solr/admin, I
see the following info, but am curious where are the supposedly 'chained'
components (e.g. QueryComponent, FacetComponent, MoreLikeThisComponent)
configured for this requestHandler.  I see timing and process debug output
from these components with "debugQuery=true", so somewhere these components
must have been configured for this 'standard' requestHandler.  

name: 	 standard  
class: 	org.apache.solr.handler.component.SearchHandler  
version: 	$Revision: 686274 $  
description: 	Search using components:
org.apache.solr.handler.component.QueryComponent,org.apache.solr.handler.component.FacetComponent,org.apache.solr.handler.component.MoreLikeThisComponent,org.apache.solr.handler.component.HighlightComponent,org.apache.solr.handler.component.DebugComponent,  
stats: 	handlerStart : 1252703405335
requests : 3
errors : 0
timeouts : 0
totalTime : 201
avgTimePerRequest : 67.0
avgRequestsPerSecond : 0.015179728 


What I like to do from understanding this is to properly integrate
spellcheck component into the standard requestHandler as suggested in a solr
spellcheck example.  

Thanks for any info in advance.
Michael
-- 
View this message in context: http://www.nabble.com/%22standard%22-requestHandler-components-tp25409075p25409075.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: "standard" requestHandler components

Posted by michael8 <mi...@saracatech.com>.
Hi Jay,

I got it from reading your response.  I did browse around in solrconfig.xml
but could not find any components configured for 'standard', but didn't
realized that there are 'defaults' hardwired.  Thanks for your quick &
detailed response and also your additional tip on spellcheck config.  You
saved me lots of time on trial-&-error.

Regards,
Michael


Jay Hill wrote:
> 
> RequestHandlers are configured in solrconfig.xml. If no components are
> explicitly declared in the request handler config the the defaults are
> used.
> They are:
> - QueryComponent
> - FacetComponent
> - MoreLikeThisComponent
> - HighlightComponent
> - StatsComponent
> - DebugComponent
> 
> If you wanted to have a custom list of components (either omitting
> defaults
> or adding custom) you can specify the components for a handler directly:
>     <arr name="components">
>       <str>query</str>
>       <str>facet</str>
>       <str>mlt</str>
>       <str>highlight</str>
>       <str>debug</str>
>       <str>someothercomponent</str>
>     </arr>
> 
> You can add components before or after the main ones like this:
>     <arr name="first-components">
>       <str>mycomponent</str>
>     </arr>
> 
>     <arr name="last-components">
>       <str>myothercomponent</str>
>     </arr>
> 
> and that's how the spell check component can be added:
>     <arr name="last-components">
>       <str>spellcheck</str>
>     </arr>
> 
> Note that the a component (except the defaults) must be configured in
> solrconfig.xml with the name used in the str element as well.
> 
> Have a look at the solrconfig.xml in the example directory
> (".../example/solr/conf/") for examples on how to set up the spellcheck
> component, and on how the request handlers are configured.
> 
> -Jay
> http://www.lucidimagination.com
> 
> 
> On Fri, Sep 11, 2009 at 3:04 PM, michael8 <mi...@saracatech.com> wrote:
> 
>>
>> Hi,
>>
>> I have a newbie question about the 'standard' requestHandler in
>> solrconfig.xml.  What I like to know is where is the config information
>> for
>> this requestHandler kept?  When I go to http://localhost:8983/solr/admin,
>> I
>> see the following info, but am curious where are the supposedly 'chained'
>> components (e.g. QueryComponent, FacetComponent, MoreLikeThisComponent)
>> configured for this requestHandler.  I see timing and process debug
>> output
>> from these components with "debugQuery=true", so somewhere these
>> components
>> must have been configured for this 'standard' requestHandler.
>>
>> name:    standard
>> class:  org.apache.solr.handler.component.SearchHandler
>> version:        $Revision: 686274 $
>> description:    Search using components:
>>
>> org.apache.solr.handler.component.QueryComponent,org.apache.solr.handler.component.FacetComponent,org.apache.solr.handler.component.MoreLikeThisComponent,org.apache.solr.handler.component.HighlightComponent,org.apache.solr.handler.component.DebugComponent,
>> stats:  handlerStart : 1252703405335
>> requests : 3
>> errors : 0
>> timeouts : 0
>> totalTime : 201
>> avgTimePerRequest : 67.0
>> avgRequestsPerSecond : 0.015179728
>>
>>
>> What I like to do from understanding this is to properly integrate
>> spellcheck component into the standard requestHandler as suggested in a
>> solr
>> spellcheck example.
>>
>> Thanks for any info in advance.
>> Michael
>> --
>> View this message in context:
>> http://www.nabble.com/%22standard%22-requestHandler-components-tp25409075p25409075.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/%22standard%22-requestHandler-components-tp25409075p25414682.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: "standard" requestHandler components

Posted by Chris Hostetter <ho...@fucit.org>.
: I just copied this information to the wiki at
: http://wiki.apache.org/solr/SolrRequestHandler

FYI: All of this info is specific to SearchComponents which are specific 
to SearchHandler -- so that page is a missleading place to put this info 
(plenty of other SearchHandlers don't support components at all)

I've updated the wiki accordingly (most of this info was already on the 
SearchComponent wiki page)



-Hoss


Re: "standard" requestHandler components

Posted by Peter Wolanin <pe...@acquia.com>.
I just copied this information to the wiki at
http://wiki.apache.org/solr/SolrRequestHandler

-Peter

On Fri, Sep 11, 2009 at 7:43 PM, Jay Hill <ja...@gmail.com> wrote:
> RequestHandlers are configured in solrconfig.xml. If no components are
> explicitly declared in the request handler config the the defaults are used.
> They are:
> - QueryComponent
> - FacetComponent
> - MoreLikeThisComponent
> - HighlightComponent
> - StatsComponent
> - DebugComponent
>
> If you wanted to have a custom list of components (either omitting defaults
> or adding custom) you can specify the components for a handler directly:
>    <arr name="components">
>      <str>query</str>
>      <str>facet</str>
>      <str>mlt</str>
>      <str>highlight</str>
>      <str>debug</str>
>      <str>someothercomponent</str>
>    </arr>
>
> You can add components before or after the main ones like this:
>    <arr name="first-components">
>      <str>mycomponent</str>
>    </arr>
>
>    <arr name="last-components">
>      <str>myothercomponent</str>
>    </arr>
>
> and that's how the spell check component can be added:
>    <arr name="last-components">
>      <str>spellcheck</str>
>    </arr>
>
> Note that the a component (except the defaults) must be configured in
> solrconfig.xml with the name used in the str element as well.
>
> Have a look at the solrconfig.xml in the example directory
> (".../example/solr/conf/") for examples on how to set up the spellcheck
> component, and on how the request handlers are configured.
>
> -Jay
> http://www.lucidimagination.com
>
>
> On Fri, Sep 11, 2009 at 3:04 PM, michael8 <mi...@saracatech.com> wrote:
>
>>
>> Hi,
>>
>> I have a newbie question about the 'standard' requestHandler in
>> solrconfig.xml.  What I like to know is where is the config information for
>> this requestHandler kept?  When I go to http://localhost:8983/solr/admin,
>> I
>> see the following info, but am curious where are the supposedly 'chained'
>> components (e.g. QueryComponent, FacetComponent, MoreLikeThisComponent)
>> configured for this requestHandler.  I see timing and process debug output
>> from these components with "debugQuery=true", so somewhere these components
>> must have been configured for this 'standard' requestHandler.
>>
>> name:    standard
>> class:  org.apache.solr.handler.component.SearchHandler
>> version:        $Revision: 686274 $
>> description:    Search using components:
>>
>> org.apache.solr.handler.component.QueryComponent,org.apache.solr.handler.component.FacetComponent,org.apache.solr.handler.component.MoreLikeThisComponent,org.apache.solr.handler.component.HighlightComponent,org.apache.solr.handler.component.DebugComponent,
>> stats:  handlerStart : 1252703405335
>> requests : 3
>> errors : 0
>> timeouts : 0
>> totalTime : 201
>> avgTimePerRequest : 67.0
>> avgRequestsPerSecond : 0.015179728
>>
>>
>> What I like to do from understanding this is to properly integrate
>> spellcheck component into the standard requestHandler as suggested in a
>> solr
>> spellcheck example.
>>
>> Thanks for any info in advance.
>> Michael
>> --
>> View this message in context:
>> http://www.nabble.com/%22standard%22-requestHandler-components-tp25409075p25409075.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>



-- 
Peter M. Wolanin, Ph.D.
Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com

Re: "standard" requestHandler components

Posted by Jay Hill <ja...@gmail.com>.
RequestHandlers are configured in solrconfig.xml. If no components are
explicitly declared in the request handler config the the defaults are used.
They are:
- QueryComponent
- FacetComponent
- MoreLikeThisComponent
- HighlightComponent
- StatsComponent
- DebugComponent

If you wanted to have a custom list of components (either omitting defaults
or adding custom) you can specify the components for a handler directly:
    <arr name="components">
      <str>query</str>
      <str>facet</str>
      <str>mlt</str>
      <str>highlight</str>
      <str>debug</str>
      <str>someothercomponent</str>
    </arr>

You can add components before or after the main ones like this:
    <arr name="first-components">
      <str>mycomponent</str>
    </arr>

    <arr name="last-components">
      <str>myothercomponent</str>
    </arr>

and that's how the spell check component can be added:
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>

Note that the a component (except the defaults) must be configured in
solrconfig.xml with the name used in the str element as well.

Have a look at the solrconfig.xml in the example directory
(".../example/solr/conf/") for examples on how to set up the spellcheck
component, and on how the request handlers are configured.

-Jay
http://www.lucidimagination.com


On Fri, Sep 11, 2009 at 3:04 PM, michael8 <mi...@saracatech.com> wrote:

>
> Hi,
>
> I have a newbie question about the 'standard' requestHandler in
> solrconfig.xml.  What I like to know is where is the config information for
> this requestHandler kept?  When I go to http://localhost:8983/solr/admin,
> I
> see the following info, but am curious where are the supposedly 'chained'
> components (e.g. QueryComponent, FacetComponent, MoreLikeThisComponent)
> configured for this requestHandler.  I see timing and process debug output
> from these components with "debugQuery=true", so somewhere these components
> must have been configured for this 'standard' requestHandler.
>
> name:    standard
> class:  org.apache.solr.handler.component.SearchHandler
> version:        $Revision: 686274 $
> description:    Search using components:
>
> org.apache.solr.handler.component.QueryComponent,org.apache.solr.handler.component.FacetComponent,org.apache.solr.handler.component.MoreLikeThisComponent,org.apache.solr.handler.component.HighlightComponent,org.apache.solr.handler.component.DebugComponent,
> stats:  handlerStart : 1252703405335
> requests : 3
> errors : 0
> timeouts : 0
> totalTime : 201
> avgTimePerRequest : 67.0
> avgRequestsPerSecond : 0.015179728
>
>
> What I like to do from understanding this is to properly integrate
> spellcheck component into the standard requestHandler as suggested in a
> solr
> spellcheck example.
>
> Thanks for any info in advance.
> Michael
> --
> View this message in context:
> http://www.nabble.com/%22standard%22-requestHandler-components-tp25409075p25409075.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>