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 "Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS]" <ti...@nasa.gov> on 2010/01/22 00:41:23 UTC

using term vectors

Hi,
I am trying termVectorComponents in SOLR.  Per wiki I am trying to define component and handler.  I define it so:
<schema name="example" version="1.1">
	<searchComponent name="tvComponent" class="org.apache.solr.handler.component.TermVectorComponent"/>
	<requestHandler name="tvrh" class="org.apache.solr.handler.component.SearchHandler">
	        <lst name="defaults">
	                <bool name="tv">true</bool>
	        </lst>
	        <arr name="last-components">
	                <str>tvComponent</str>
	        </arr>
	</requestHandler>
...
</schema>

But when I query I get "unknown handler: tvrh"

Am I putting the XML definitions in the correct place?

Tim

Re: using term vectors

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
Tim,

You should define the search component in solrconfig.xml, not schema.xml.

Koji

-- 
http://www.rondhuit.com/en/



Harsch, Timothy J. (ARC-TI)[PEROT SYSTEMS] wrote:
> Hi,
> I am trying termVectorComponents in SOLR.  Per wiki I am trying to define component and handler.  I define it so:
> <schema name="example" version="1.1">
> 	<searchComponent name="tvComponent" class="org.apache.solr.handler.component.TermVectorComponent"/>
> 	<requestHandler name="tvrh" class="org.apache.solr.handler.component.SearchHandler">
> 	        <lst name="defaults">
> 	                <bool name="tv">true</bool>
> 	        </lst>
> 	        <arr name="last-components">
> 	                <str>tvComponent</str>
> 	        </arr>
> 	</requestHandler>
> ...
> </schema>
>
> But when I query I get "unknown handler: tvrh"
>
> Am I putting the XML definitions in the correct place?
>
> Tim
>
>