hi, 
thanks for your response and suggestions. 
 
I can get all the facet working now if I issue:
 
http://localhost:8080/solr/spellCheckCompRH?q=smath&spellcheck.q=smath&spellcheck=true&rows=0&facet=true&facet.limit=-1&facet.field=lastname
 
The above statement retrieves all the last-names and facet them, but since 
Smith was miss-spelled as smath, therefore it says 
< int  name = "smith "> 0 
 
what I would like to achieve is to type smath , solr corrects it to smith and 
also facet it to something like this ( at the same time):
 
< int  name = "smith "> 2 
 
can this be done in one go ? or the end user has to decide the suggestions and 
then solr facets them ?
 
many thanks
ak
----------------------------------------
> Date: Wed, 23 Jul 2008 08:55:27 -0400
> From: [EMAIL PROTECTED]
> To: solr-user@lucene.apache.org
> Subject: Re: spell-checker and faceting
> 
> 
> 
> dudes dudes wrote:
>> Hi, 
>> 
>> I'm trying to couple spell-checking mechanism with faceting in one url 
>> statement.. I can get the spell check right, but the facet doesn't work when 
>> it's combined 
>> with spell-checker... 
>> 
>> http://localhost:8080/solr/spellCheckCompRH?q=smath&spellcheck.q=smath&spellcheck=true&spellcheck.build=true&select?q=smath&rows=0&facet=true&facet.limit=1&facet.field=firstname
>>  
>> 
>> it corrects smath to Smith, but doesn't facet it.
> 
> I was able to get faceting working without issue.  it seems to me your 
> query string is off - note the 'select?q=smath' in the middle of your 
> query.  I'd try again with that part removed.
> 
> also note you only need to spellcheck.build=true once, not on each request.
> 
> --Geoff

_________________________________________________________________
100’s of Nikon cameras to be won with Live Search
http://clk.atdmt.com/UKM/go/101719808/direct/01/

Reply via email to