lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl <jan....@cominvent.com>
Subject Re: Problem with spellchecking, dont want multiple request to SOLR
Date Mon, 30 May 2011 08:00:42 GMT
Hi,

Define two searchComponents with different names. Then refer to both in <last-components>
in your Search Request Handler config.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 27. mai 2011, at 10.01, roySolr wrote:

> mm ok. I configure 2 spellcheckers:
> 
> <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>   	 <lst name="spellchecker">
>      		<str name="name">spell_what</str>
>      		<str name="field">spell_what</str>
>      		<str name="buildOnOptimize">true</str>
>      		<str name="spellcheckIndexDir">spellchecker_what</str>
>    	</lst>
>    	<lst name="spellchecker">
>      		<str name="name">spell_where</str>
>      		<str name="field">spell_where</str>
>      		<str name="buildOnOptimize">true</str>
>      		<str name="spellcheckIndexDir">spellchecker_where</str>
>    	</lst>
> </searchComponent>
> 
> How can i enable it in my search request handler and search both in one
> request?
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p2992076.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message