Thanks Shalin! I applied your patch and deployed the war. While debugging the overridden method SpellCheckComponent.finishStage is not getting invoked by the SearchHandler. Instead its invoking the SearchComponent.finishStage method. Do I need to configure anything extra to make it work? My current configuration is as follows:
<searchComponent name="spellcheck" class="solr.SpellCheckComponent"> <str name="queryAnalyzerFieldType">textSpell</str> <lst name="spellchecker"> <str name="name">default</str> <str name="field">spell</str> <str name="spellcheckIndexDir">./spellchecker1</str> </lst> <lst name="spellchecker"> <str name="name">jarowinkler</str> <str name="field">spell</str> <!-- Use a different Distance Measure --> <str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str> <str name="spellcheckIndexDir">./spellchecker2</str> </lst> </searchComponent> <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> --> <!-- omp = Only More Popular --> <str name="spellcheck.onlyMorePopular">false</str> <!-- exr = Extended Results --> <str name="spellcheck.extendedResults">false</str> <!-- The number of suggestions to return --> <str name="spellcheck.count">1</str> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requestHandler> Shalin Shekhar Mangar wrote: > > On Wed, Oct 7, 2009 at 2:14 PM, balaji.a <reachbalaj...@gmail.com> wrote: > >> >> Hi All, >> I am trying to get spell check suggestions in my distributed search >> query >> using shards. > > > SpellCheckComponent does not support distributed search yet. There is an > issue open with a patch. If you decide to use, do let us know your > feedback: > > https://issues.apache.org/jira/browse/SOLR-785 > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Doing-SpellCheck-in-distributed-search-tp25782755p25783896.html Sent from the Solr - User mailing list archive at Nabble.com.