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 manivanann <ma...@gmail.com> on 2013/02/06 15:47:36 UTC

Multi-select faceting is not working when facet fields are configured in default request handler.

Hi solr-user,

   In my work i have to do multi facet select. we have already configured
facet fields  globally in default request handler(solrconfig.xml). For multi
facet select i have done the query with exclusion filter. But it's not
working. The following is my query.

http://192.168.101.141:8080/solr/select?q=digital+camera&rows=0&facet=on&fq={!tag=Br}Brands:canon&facet.field={!ex=Br}Brands

But if i try after removing all the facet fields from my request hander in
solrconfig.xml, then above query is working fine.

please can you give me a solution. This multi-select faceting will work with
the current implementation or i have to remove all the facet from my request
handler means dynamically i have to send the facet fields through query when
i do multi-select faceting.



--
View this message in context: http://lucene.472066.n3.nabble.com/Multi-select-faceting-is-not-working-when-facet-fields-are-configured-in-default-request-handler-tp4038768.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Multi-select faceting is not working when facet fields are configured in default request handler.

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
I think it would still fail because of the 'tag' exclusions. Whatever
facets will be defined on the handler, they will not be taking into account
'tag' exclusions.

Regards,
   Alex.

Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)


On Thu, Feb 7, 2013 at 7:17 AM, Erik Hatcher <er...@gmail.com> wrote:

> How was your facet.field defined in the request handler?   My guess is it
> needs to be moved to an "appends" section.
>
>     Erik
>
> On Feb 7, 2013, at 4:11, Jan Høydahl <ja...@cominvent.com> wrote:
>
> > If you want to override facet.field through the query, you have to
> override ALL facet.field's defined as default in reqeust handler, else
> those other facets are gone.
> >
> > You say "But it's not working." without specifying WHAT is not working.
> >
> > --
> > Jan Høydahl, search solution architect
> > Cominvent AS - www.cominvent.com
> > Solr Training - www.solrtraining.com
> >
> > 6. feb. 2013 kl. 15:47 skrev manivanann <ma...@gmail.com>:
> >
> >> Hi solr-user,
> >>
> >>  In my work i have to do multi facet select. we have already configured
> >> facet fields  globally in default request handler(solrconfig.xml). For
> multi
> >> facet select i have done the query with exclusion filter. But it's not
> >> working. The following is my query.
> >>
> >>
> http://192.168.101.141:8080/solr/select?q=digital+camera&rows=0&facet=on&fq={!tag=Br}Brands:canon&facet.field={!ex=Br}Brands
> >>
> >> But if i try after removing all the facet fields from my request hander
> in
> >> solrconfig.xml, then above query is working fine.
> >>
> >> please can you give me a solution. This multi-select faceting will work
> with
> >> the current implementation or i have to remove all the facet from my
> request
> >> handler means dynamically i have to send the facet fields through query
> when
> >> i do multi-select faceting.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> http://lucene.472066.n3.nabble.com/Multi-select-faceting-is-not-working-when-facet-fields-are-configured-in-default-request-handler-tp4038768.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >
>

Re: Multi-select faceting is not working when facet fields are configured in default request handler.

Posted by Erik Hatcher <er...@gmail.com>.
How was your facet.field defined in the request handler?   My guess is it needs to be moved to an "appends" section. 

    Erik

On Feb 7, 2013, at 4:11, Jan Høydahl <ja...@cominvent.com> wrote:

> If you want to override facet.field through the query, you have to override ALL facet.field's defined as default in reqeust handler, else those other facets are gone.
> 
> You say "But it's not working." without specifying WHAT is not working.
> 
> --
> Jan Høydahl, search solution architect
> Cominvent AS - www.cominvent.com
> Solr Training - www.solrtraining.com
> 
> 6. feb. 2013 kl. 15:47 skrev manivanann <ma...@gmail.com>:
> 
>> Hi solr-user,
>> 
>>  In my work i have to do multi facet select. we have already configured
>> facet fields  globally in default request handler(solrconfig.xml). For multi
>> facet select i have done the query with exclusion filter. But it's not
>> working. The following is my query.
>> 
>> http://192.168.101.141:8080/solr/select?q=digital+camera&rows=0&facet=on&fq={!tag=Br}Brands:canon&facet.field={!ex=Br}Brands
>> 
>> But if i try after removing all the facet fields from my request hander in
>> solrconfig.xml, then above query is working fine.
>> 
>> please can you give me a solution. This multi-select faceting will work with
>> the current implementation or i have to remove all the facet from my request
>> handler means dynamically i have to send the facet fields through query when
>> i do multi-select faceting.
>> 
>> 
>> 
>> --
>> View this message in context: http://lucene.472066.n3.nabble.com/Multi-select-faceting-is-not-working-when-facet-fields-are-configured-in-default-request-handler-tp4038768.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 

Re: Multi-select faceting is not working when facet fields are configured in default request handler.

Posted by Jan Høydahl <ja...@cominvent.com>.
If you want to override facet.field through the query, you have to override ALL facet.field's defined as default in reqeust handler, else those other facets are gone.

You say "But it's not working." without specifying WHAT is not working.

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

6. feb. 2013 kl. 15:47 skrev manivanann <ma...@gmail.com>:

> Hi solr-user,
> 
>   In my work i have to do multi facet select. we have already configured
> facet fields  globally in default request handler(solrconfig.xml). For multi
> facet select i have done the query with exclusion filter. But it's not
> working. The following is my query.
> 
> http://192.168.101.141:8080/solr/select?q=digital+camera&rows=0&facet=on&fq={!tag=Br}Brands:canon&facet.field={!ex=Br}Brands
> 
> But if i try after removing all the facet fields from my request hander in
> solrconfig.xml, then above query is working fine.
> 
> please can you give me a solution. This multi-select faceting will work with
> the current implementation or i have to remove all the facet from my request
> handler means dynamically i have to send the facet fields through query when
> i do multi-select faceting.
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Multi-select-faceting-is-not-working-when-facet-fields-are-configured-in-default-request-handler-tp4038768.html
> Sent from the Solr - User mailing list archive at Nabble.com.