Re: Doing SpellCheck in distributed search

2009-10-07 Thread Shalin Shekhar Mangar
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.


Re: Doing SpellCheck in distributed search

2009-10-07 Thread balaji.a

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=queryAnalyzerFieldTypetextSpell/str

lst name=spellchecker
  str name=namedefault/str
  str name=fieldspell/str
  str name=spellcheckIndexDir./spellchecker1/str

/lst
lst name=spellchecker
  str name=namejarowinkler/str
  str name=fieldspell/str
  !-- Use a different Distance Measure --
  str
name=distanceMeasureorg.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=echoParamsexplicit/str
   !--
   int name=rows10/int
   str name=fl*/str
   str name=version2.1/str
--
!-- omp = Only More Popular --
str name=spellcheck.onlyMorePopularfalse/str
!-- exr = Extended Results --
str name=spellcheck.extendedResultsfalse/str
!--  The number of suggestions to return --
str name=spellcheck.count1/str
  /lst
  arr name=last-components
strspellcheck/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.



Re: Doing SpellCheck in distributed search

2009-10-07 Thread balaji.a

Sorry! it was my mistake of not copying the war at correct location.


balaji.a wrote:
 
 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=queryAnalyzerFieldTypetextSpell/str
 
 lst name=spellchecker
   str name=namedefault/str
   str name=fieldspell/str
   str name=spellcheckIndexDir./spellchecker1/str
 
 /lst
 lst name=spellchecker
   str name=namejarowinkler/str
   str name=fieldspell/str
   !-- Use a different Distance Measure --
   str
 name=distanceMeasureorg.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=echoParamsexplicit/str
!--
int name=rows10/int
str name=fl*/str
str name=version2.1/str
 --
 !-- omp = Only More Popular --
 str name=spellcheck.onlyMorePopularfalse/str
 !-- exr = Extended Results --
 str name=spellcheck.extendedResultsfalse/str
 !--  The number of suggestions to return --
 str name=spellcheck.count1/str
   /lst
   arr name=last-components
 strspellcheck/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-tp25782755p25783922.html
Sent from the Solr - User mailing list archive at Nabble.com.