Re: using distributed search with the suggest component

2011-08-04 Thread mdz-munich
Hi Tobias,

sadly, it seems you are right.  

After a little bit investigation we also recognized that some names (we use
it for auto-completing author-names), are missing. And since it is a
distributed setup ... 

But I am almost sure it worked with Solr 3.2. 



Best regards,

Sebastian 

--
View this message in context: 
http://lucene.472066.n3.nabble.com/using-distributed-search-with-the-suggest-component-tp3197651p3226082.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: using distributed search with the suggest component

2011-07-27 Thread Tobias Rübner
Thanks, but this does not work.
Looking at the log files, I see only one request, when executing a search.
Executing a request to the default servlet (/select) with multiple shards,
each core gets ask for the current query.

Any other suggestions?
Tobias


On Tue, Jul 26, 2011 at 2:11 PM, mdz-munich sebastian.lu...@bsb-muenchen.de
 wrote:

 Hi Tobias,

 try this, it works for us (Solr 3.3):

 solrconfig.xml:

 /searchComponent name=suggest class=solr.SpellCheckComponent
 str name=queryAnalyzerFieldTypeword/str
 lst name=spellchecker
 str name=namesuggestion/str
 str name=classnameorg.apache.solr.spelling.suggest.Suggester/str
 str name=lookupImplorg.apache.solr.spelling.suggest.fst.FSTLookup/str
 str name=fieldwordCorpus/str
 str name=comparatorClassscore/str
 str name=storeDir./suggester/str
 str name=buildOnCommitfalse/str
 str name=buildOnOptimizetrue/str
 float name=threshold0.005/float
 /lst

 requestHandler name=/suggest class=solr.SearchHandler
 lst name=defaults
 str name=omitHeadertrue/str
 str name=spellchecktrue/str
 str name=spellcheck.onlyMorePopulartrue/str
 str name=spellcheck.collatetrue/str
 str name=spellcheck.dictionarysuggestion/str
 str name=spellcheck.count50/str
 str name=spellcheck.maxCollations50/str
 /lst
 arr name=components
 strsuggest/str
 /arr
 /requestHandler/

 Query like that:


 http://localhost:8080/solr/core.01/suggest?q=wordPrefixshards=localhost:8080/solr/core.01,localhost:8080/solr/core.02shards.qt=/suggest


 Greetz,

 Sebastian



 Tobias Rübner wrote:
 
  Hi,
 
  I try to use the suggest component (solr 3.3) with multiple cores.
  I added a search component and a request handler as described in the docs
  (
  http://wiki.apache.org/solr/Suggester) to my solrconfig.
  That works fine for 1 core but querying my solr instance with the shards
  parameter does not query multiple cores.
  It just ignores the shards parameter.
 
 http://localhost:/solr/core1/suggest?q=sashards=localhost:/solr/core1,localhost:/solr/core2
 
  The documentation of the SpellCheckComponent (
 
 http://wiki.apache.org/solr/SpellCheckComponent#Distributed_Search_Support
 )
  is a bit vage in that point, because I don't know if this feature really
  works with solr 3.3. It is targeted for solr 1.5, which will never come,
  but
  says, it is now available.
  I also tried the shards.qt paramater, but it does not change my results.
 
  Thanks for any help,
  Tobias
 


 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/using-distributed-search-with-the-suggest-component-tp3197651p3200143.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: using distributed search with the suggest component

2011-07-26 Thread mdz-munich
Hi Tobias,

try this, it works for us (Solr 3.3):

solrconfig.xml:

/searchComponent name=suggest class=solr.SpellCheckComponent
str name=queryAnalyzerFieldTypeword/str
lst name=spellchecker
str name=namesuggestion/str
str name=classnameorg.apache.solr.spelling.suggest.Suggester/str
str name=lookupImplorg.apache.solr.spelling.suggest.fst.FSTLookup/str
str name=fieldwordCorpus/str
str name=comparatorClassscore/str
str name=storeDir./suggester/str
str name=buildOnCommitfalse/str
str name=buildOnOptimizetrue/str
float name=threshold0.005/float
/lst

requestHandler name=/suggest class=solr.SearchHandler
lst name=defaults
str name=omitHeadertrue/str
str name=spellchecktrue/str
str name=spellcheck.onlyMorePopulartrue/str
str name=spellcheck.collatetrue/str
str name=spellcheck.dictionarysuggestion/str
str name=spellcheck.count50/str
str name=spellcheck.maxCollations50/str
/lst
arr name=components
strsuggest/str
/arr
/requestHandler/

Query like that:

http://localhost:8080/solr/core.01/suggest?q=wordPrefixshards=localhost:8080/solr/core.01,localhost:8080/solr/core.02shards.qt=/suggest


Greetz,

Sebastian



Tobias Rübner wrote:
 
 Hi,
 
 I try to use the suggest component (solr 3.3) with multiple cores.
 I added a search component and a request handler as described in the docs
 (
 http://wiki.apache.org/solr/Suggester) to my solrconfig.
 That works fine for 1 core but querying my solr instance with the shards
 parameter does not query multiple cores.
 It just ignores the shards parameter.
 http://localhost:/solr/core1/suggest?q=sashards=localhost:/solr/core1,localhost:/solr/core2
 
 The documentation of the SpellCheckComponent (
 http://wiki.apache.org/solr/SpellCheckComponent#Distributed_Search_Support)
 is a bit vage in that point, because I don't know if this feature really
 works with solr 3.3. It is targeted for solr 1.5, which will never come,
 but
 says, it is now available.
 I also tried the shards.qt paramater, but it does not change my results.
 
 Thanks for any help,
 Tobias
 


--
View this message in context: 
http://lucene.472066.n3.nabble.com/using-distributed-search-with-the-suggest-component-tp3197651p3200143.html
Sent from the Solr - User mailing list archive at Nabble.com.


using distributed search with the suggest component

2011-07-25 Thread Tobias Rübner
Hi,

I try to use the suggest component (solr 3.3) with multiple cores.
I added a search component and a request handler as described in the docs (
http://wiki.apache.org/solr/Suggester) to my solrconfig.
That works fine for 1 core but querying my solr instance with the shards
parameter does not query multiple cores.
It just ignores the shards parameter.
http://localhost:/solr/core1/suggest?q=sashards=localhost:/solr/core1,localhost:/solr/core2

The documentation of the SpellCheckComponent (
http://wiki.apache.org/solr/SpellCheckComponent#Distributed_Search_Support)
is a bit vage in that point, because I don't know if this feature really
works with solr 3.3. It is targeted for solr 1.5, which will never come, but
says, it is now available.
I also tried the shards.qt paramater, but it does not change my results.

Thanks for any help,
Tobias