lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Nagy <>
Subject RE: Multiple search components in one handler - ie spellchecker
Date Fri, 25 Jul 2008 18:44:39 GMT
Thanks for getting back to me Geoff.  Although, that is pretty much what I have.  Maybe if
I show my solrconfig someone might be able to point out what I have incorrect?  The problem
is that nothing related to the spelling options are show in the results, just the normal expected
search results.  Here is my query:

    <searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent">
      <lst name="spellchecker">
        <str name="field">allfields</str>
        <str name="accuracy">0.7</str> <!-- 0.5 is the default setting -->
        <str name="spellcheckIndexDir">./spellchecker</str>
      <str name="queryAnalyzerFieldType">text</str>
    <queryConverter name="queryConverter" class="org.apache.solr.spelling.SpellingQueryConverter"/>
    <requestHandler name="/search" class="org.apache.solr.handler.component.SearchHandler">
      <lst name="defaults">
        <str name="echoParams">explicit</str>
      <arr name="last-components">

From: Geoffrey Young []
Sent: Friday, July 25, 2008 2:13 PM
Subject: Re: Multiple search components in one handler - ie spellchecker

Andrew Nagy wrote:
> Hello - I am attempting to add the spellCheck component in my
> "search" requesthandler so when a users does a search, they get the
> results and spelling corrections all in one query just like the way
> the facets work.
> I am having some trouble accomplishing this - can anyone point me to
> documentation (other than
> on how to do this or
> an example solrconfig that would do this correctly?

in general, just add the

   <arr name="last-components">

bit to your existing handler after following setup in the twiki docs.

you can ignore the part about the exceptions, as that has been fixed in



View raw message