Re: Problem with spellchecking, dont want multiple request to SOLR

2011-07-07 Thread roySolr
What should the query look like??

I can't define 2 spellchecker in one query. I want something like this:

Search: Soccerclub(what) Manchester(where)

select/?q=socerclub
macnchesterspellcheck=truespellcheck.dictionary=spell_whatspellcheck.dictionary=spell_wherespell_what=socerclubspell_where=macnchester

Now i have 2 spellcheckers in my requesthandler but i can't set them correct
in my query.
My config looks like this:

arr name=last-components
strspellcheck1/str
strspellcheck2/str
/arr

searchComponent name=spellcheck1 class=solr.SpellCheckComponent
 lst name=spellchecker
str name=namespell_what/str
str name=fieldspell_search1/str
str name=buildOnOptimizetrue/str
str name=spellcheckIndexDirspellchecker1/str
/lst
/searchComponent
searchComponent name=spellcheck2 class=solr.SpellCheckComponent
 lst name=spellchecker
str name=namespell_where/str
str name=fieldspell_search2/str
str name=buildOnOptimizetrue/str
str name=spellcheckIndexDirspellchecker2/str
/lst
/searchComponent




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p3147545.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem with spellchecking, dont want multiple request to SOLR

2011-05-30 Thread Jan Høydahl
Hi,

Define two searchComponents with different names. Then refer to both in 
last-components in your Search Request Handler config.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 27. mai 2011, at 10.01, roySolr wrote:

 mm ok. I configure 2 spellcheckers:
 
 searchComponent name=spellcheck class=solr.SpellCheckComponent
lst name=spellchecker
   str name=namespell_what/str
   str name=fieldspell_what/str
   str name=buildOnOptimizetrue/str
   str name=spellcheckIndexDirspellchecker_what/str
   /lst
   lst name=spellchecker
   str name=namespell_where/str
   str name=fieldspell_where/str
   str name=buildOnOptimizetrue/str
   str name=spellcheckIndexDirspellchecker_where/str
   /lst
 /searchComponent
 
 How can i enable it in my search request handler and search both in one
 request?
 
 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p2992076.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Problem with spellchecking, dont want multiple request to SOLR

2011-05-27 Thread roySolr
mm ok. I configure 2 spellcheckers:

searchComponent name=spellcheck class=solr.SpellCheckComponent
 lst name=spellchecker
str name=namespell_what/str
str name=fieldspell_what/str
str name=buildOnOptimizetrue/str
str name=spellcheckIndexDirspellchecker_what/str
/lst
lst name=spellchecker
str name=namespell_where/str
str name=fieldspell_where/str
str name=buildOnOptimizetrue/str
str name=spellcheckIndexDirspellchecker_where/str
/lst
/searchComponent

How can i enable it in my search request handler and search both in one
request?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p2992076.html
Sent from the Solr - User mailing list archive at Nabble.com.


Problem with spellchecking, dont want multiple request to SOLR

2011-05-26 Thread roySolr
Hello,

First i will explain my situation. I have a 2 fields on my website: What and
Where. 
When a user search i want spellcheck on both fields. Now i have 2
dictionaries, one for
what and one for where. I want to search with one request and spellcheck
both fields. Is
it possible and how?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p2988167.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problem with spellchecking, dont want multiple request to SOLR

2011-05-26 Thread Jan Høydahl
Yep, it's possible. Setup two spellcheckers, one named spellwhat and one 
named spellwhere and enable both on your searchRequestHandler.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

On 26. mai 2011, at 12.04, roySolr wrote:

 Hello,
 
 First i will explain my situation. I have a 2 fields on my website: What and
 Where. 
 When a user search i want spellcheck on both fields. Now i have 2
 dictionaries, one for
 what and one for where. I want to search with one request and spellcheck
 both fields. Is
 it possible and how?
 
 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Problem-with-spellchecking-dont-want-multiple-request-to-SOLR-tp2988167p2988167.html
 Sent from the Solr - User mailing list archive at Nabble.com.