On Sat, Mar 28, 2009 at 12:16 AM, Marc Sturlese <marc.sturl...@gmail.com>wrote:

>
> Hey there,
> I have a doubt with spellcheck component...
> If I tell the spellcheck component to load the dictionary from a field of
> my
> solr main index there's no problem but... Does someone know how to tell the
> spellcheck component to load the dictionary from a filed of an external
> index?


You need to specify sourceLocation which is the location of the external
index.


>
> What I do is:
>
>  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>    <str name="queryAnalyzerFieldType">text</str>
>    <lst name="spellchecker">
>      <str name="name">default</str>
>      <str name="field">word_spell</str>
>      <str name="spellcheckIndexDir">./spellchecker1</str>
>    </lst>
>  </searchComponent>
>
> word_spell is the field witch contains the dictionary in my "secondary"
> solr
> index, with I have placed in /spellchecker1.


The spellcheckIndexDir is the location where this spellcheck index will be
created.

I guess the wiki documentation is lacking sourceLocation completely. I'll
add more documentation.

http://wiki.apache.org/solr/SpellCheckComponent

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to