Re: solr distributed search don't work

2011-09-01 Thread olivier sallou
   requestHandler name=MYREQUESTHANDLER class=solr.SearchHandler
!-- default values for query parameters --
 lst name=defaults
   str name=echoParamsexplicit/str
   str name=facet.methodenum/str
   str name=facet.mincount1/str
   str name=facet.limit10/str
  str name=shards192.168.1.6/solr/,192.168.1.7/solr//str
 /lst
  /requestHandler

2011/8/19 Li Li fancye...@gmail.com

 could you please show me your configuration in solrconfig.xml?

 On Fri, Aug 19, 2011 at 5:31 PM, olivier sallou
 olivier.sal...@gmail.com wrote:
  Hi,
  I do not use spell but I use distributed search, using qt=spell is
 correct,
  should not use qt=\spell.
  For shards, I specify it in solrconfig directly, not in url, but should
  work the same.
  Maybe an issue in your spell request handler.
 
 
  2011/8/19 Li Li fancye...@gmail.com
 
  hi all,
  I follow the wiki http://wiki.apache.org/solr/SpellCheckComponent
  but there is something wrong.
  the url given my the wiki is
 
 
 http://solr:8983/solr/select?q=*:*spellcheck=truespellcheck.build=truespellcheck.q=toyataqt=spellshards.qt=spellshards=solr-shard1:8983/solr,solr-shard2:8983/solr
  but it does not work. I trace the codes and find that
  qt=spellshards.qt=spell should be qt=/spellshards.qt=/spell
  After modification of url, It return all documents but nothing
  about spell check.
  I debug it and find the
  AbstractLuceneSpellChecker.getSuggestions() is called.
 
 



solr distributed search don't work

2011-08-19 Thread Li Li
hi all,
 I follow the wiki http://wiki.apache.org/solr/SpellCheckComponent
but there is something wrong.
 the url given my the wiki is
http://solr:8983/solr/select?q=*:*spellcheck=truespellcheck.build=truespellcheck.q=toyataqt=spellshards.qt=spellshards=solr-shard1:8983/solr,solr-shard2:8983/solr
 but it does not work. I trace the codes and find that
qt=spellshards.qt=spell should be qt=/spellshards.qt=/spell
 After modification of url, It return all documents but nothing
about spell check.
 I debug it and find the
AbstractLuceneSpellChecker.getSuggestions() is called.


Re: solr distributed search don't work

2011-08-19 Thread olivier sallou
Hi,
I do not use spell but I use distributed search, using qt=spell is correct,
should not use qt=\spell.
For shards, I specify it in solrconfig directly, not in url, but should
work the same.
Maybe an issue in your spell request handler.


2011/8/19 Li Li fancye...@gmail.com

 hi all,
 I follow the wiki http://wiki.apache.org/solr/SpellCheckComponent
 but there is something wrong.
 the url given my the wiki is

 http://solr:8983/solr/select?q=*:*spellcheck=truespellcheck.build=truespellcheck.q=toyataqt=spellshards.qt=spellshards=solr-shard1:8983/solr,solr-shard2:8983/solr
 but it does not work. I trace the codes and find that
 qt=spellshards.qt=spell should be qt=/spellshards.qt=/spell
 After modification of url, It return all documents but nothing
 about spell check.
 I debug it and find the
 AbstractLuceneSpellChecker.getSuggestions() is called.



Re: solr distributed search don't work

2011-08-19 Thread Li Li
could you please show me your configuration in solrconfig.xml?

On Fri, Aug 19, 2011 at 5:31 PM, olivier sallou
olivier.sal...@gmail.com wrote:
 Hi,
 I do not use spell but I use distributed search, using qt=spell is correct,
 should not use qt=\spell.
 For shards, I specify it in solrconfig directly, not in url, but should
 work the same.
 Maybe an issue in your spell request handler.


 2011/8/19 Li Li fancye...@gmail.com

 hi all,
     I follow the wiki http://wiki.apache.org/solr/SpellCheckComponent
 but there is something wrong.
     the url given my the wiki is

 http://solr:8983/solr/select?q=*:*spellcheck=truespellcheck.build=truespellcheck.q=toyataqt=spellshards.qt=spellshards=solr-shard1:8983/solr,solr-shard2:8983/solr
     but it does not work. I trace the codes and find that
 qt=spellshards.qt=spell should be qt=/spellshards.qt=/spell
     After modification of url, It return all documents but nothing
 about spell check.
     I debug it and find the
 AbstractLuceneSpellChecker.getSuggestions() is called.