You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by dudes dudes <ak...@hotmail.co.uk> on 2008/07/23 13:14:59 UTC

spell-checker and faceting

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.

thanks for your time
ak
_________________________________________________________________
The John Lewis Clearance - save up to 50% with FREE delivery
http://clk.atdmt.com/UKM/go/101719806/direct/01/

RE: spell-checker and faceting

Posted by dudes dudes <ak...@hotmail.co.uk>.
thanks :)
----------------------------------------
> Date: Thu, 24 Jul 2008 15:09:55 +0530
> From: shalinmangar@gmail.com
> To: solr-user@lucene.apache.org
> Subject: Re: spell-checker and faceting
> 
> No, nothing of that sort right now.
> 
> On Thu, Jul 24, 2008 at 2:44 PM, dudes dudes  wrote:
> 
>>
>> hi again,
>> I have one more question to ask with regards to following statements..
>>
>>
>> http://localhost:8080/solr/spellCheckCompRH?q=smath&spellcheck=true&facet=true&facet.limit=-1&facet.field=lastname
>>
>> lastname is a field that is defined under schema.xml... what if I want to
>> list all the fields that are defined under the schema ? is it possible to
>> use some wild cards ?
>>
>> thanks again.
>> ak
>>
>> ----------------------------------------
>>> Date: Thu, 24 Jul 2008 13:32:05 +0530
>>> From: shalinmangar@gmail.com
>>> To: solr-user@lucene.apache.org
>>> Subject: Re: spell-checker and faceting
>>>
>>> On Thu, Jul 24, 2008 at 1:24 PM, dudes dudes  wrote:
>>>
>>>>
>>>> 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 ?
>>>
>>>
>>> No, you must issue another request to get the updated facet counts and
>>> search results.
>>>
>>> --
>>> Regards,
>>> Shalin Shekhar Mangar.
>>
>> _________________________________________________________________
>> Find the best and worst places on the planet
>> http://clk.atdmt.com/UKM/go/101719807/direct/01/
> 
> 
> 
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.

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

Re: spell-checker and faceting

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
No, nothing of that sort right now.

On Thu, Jul 24, 2008 at 2:44 PM, dudes dudes <ak...@hotmail.co.uk> wrote:

>
> hi again,
> I have one more question to ask with regards to following statements..
>
>
> http://localhost:8080/solr/spellCheckCompRH?q=smath&spellcheck=true&facet=true&facet.limit=-1&facet.field=lastname
>
> lastname is a field that is defined under schema.xml... what if I want to
> list all the fields that are defined under the schema ? is it possible to
> use some wild cards ?
>
> thanks again.
> ak
>
> ----------------------------------------
> > Date: Thu, 24 Jul 2008 13:32:05 +0530
> > From: shalinmangar@gmail.com
> > To: solr-user@lucene.apache.org
> > Subject: Re: spell-checker and faceting
> >
> > On Thu, Jul 24, 2008 at 1:24 PM, dudes dudes  wrote:
> >
> >>
> >> 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 ?
> >
> >
> > No, you must issue another request to get the updated facet counts and
> > search results.
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
>
> _________________________________________________________________
> Find the best and worst places on the planet
> http://clk.atdmt.com/UKM/go/101719807/direct/01/




-- 
Regards,
Shalin Shekhar Mangar.

RE: spell-checker and faceting

Posted by dudes dudes <ak...@hotmail.co.uk>.
hi again, 
I have one more question to ask with regards to following statements.. 

http://localhost:8080/solr/spellCheckCompRH?q=smath&spellcheck=true&facet=true&facet.limit=-1&facet.field=lastname

lastname is a field that is defined under schema.xml... what if I want to list all the fields that are defined under the schema ? is it possible to use some wild cards ?

thanks again.
ak

----------------------------------------
> Date: Thu, 24 Jul 2008 13:32:05 +0530
> From: shalinmangar@gmail.com
> To: solr-user@lucene.apache.org
> Subject: Re: spell-checker and faceting
> 
> On Thu, Jul 24, 2008 at 1:24 PM, dudes dudes  wrote:
> 
>>
>> 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 ?
> 
> 
> No, you must issue another request to get the updated facet counts and
> search results.
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.

_________________________________________________________________
Find the best and worst places on the planet
http://clk.atdmt.com/UKM/go/101719807/direct/01/

Re: spell-checker and faceting

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Thu, Jul 24, 2008 at 1:24 PM, dudes dudes <ak...@hotmail.co.uk> wrote:

>
> 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 ?


No, you must issue another request to get the updated facet counts and
search results.

-- 
Regards,
Shalin Shekhar Mangar.

RE: spell-checker and faceting

Posted by dudes dudes <ak...@hotmail.co.uk>.
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: geoff@modperlcookbook.org
> 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/

Re: spell-checker and faceting

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

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