On Wed, Oct 28, 2009 at 8:57 PM, darniz <rnizamud...@edmunds.com> wrote:

>
> Question. Should i build the dictionlary only once and after that as new
> words are indexed the dictionary will be updated. Or i to do that manually
> over certain interval.
>
>
No. The dictionary is built only when spellcheck.build=true is specified as
a request parameter. You will need to explicitly send spellcheck.build=true
again when the document changes or you can use the buildOnCommit or
buildOnOptimize parameters to re-build the index automatically.

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


>
> add the spellcheck component to the handler in my case as of now standard
> requets handler. I might also start adding some more dismax handlers
> depending on my requirement
>  <requestHandler name="standard" class="solr.SearchHandler" default="true">
>    <!-- default values for query parameters -->
>     <lst name="defaults">
>       <str name="echoParams">explicit</str>
>       <!--
>       <int name="rows">10</int>
>       <str name="fl">*</str>
>       <str name="version">2.1</str>
>        -->
>     </lst>
>     <arr name="last-components">
>        <str>spellcheck</str>
>     </arr>
>  </requestHandler>
>
> run the query with parameter spell.check=true, and also specify against
> which dictionary you want to run spell check again in my case my
> spellcheck.dictionary parameter is mySpellChecker.
>
>
The parameter is spellcheck=true not spell.check=true. If you do not give a
name to your dictionary then you do not need to add the
spellcheck.dictionary parameter.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to