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 Yavuz Selim YILMAZ <yv...@gmail.com> on 2010/10/20 16:39:03 UTC

Mulitple facet - fq

Under category facet, there are multiple selections, whicih can be
personal,corporate or other ....

How can I get both "personal" and "corporate" ones, I tried
fq=category:corporate&fq=category:personal

It looks easy, but I can't find the solution.


--

Yavuz Selim YILMAZ

Re: Mulitple facet - fq

Posted by Markus Jelsma <ma...@openindex.io>.
It should work fine. Make sure the field is indexed and check your index.

On Wednesday 20 October 2010 16:39:03 Yavuz Selim YILMAZ wrote:
> Under category facet, there are multiple selections, whicih can be
> personal,corporate or other ....
> 
> How can I get both "personal" and "corporate" ones, I tried
> fq=category:corporate&fq=category:personal
> 
> It looks easy, but I can't find the solution.
> 
> 
> --
> 
> Yavuz Selim YILMAZ

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536600 / 06-50258350

Re: Mulitple facet - fq

Posted by Yavuz Selim YILMAZ <yv...@gmail.com>.
Thnx guys.
--

Yavuz Selim YILMAZ


2010/10/20 Tim Gilbert <TI...@morningstar.com>

> Sorry, what Pradeep said, not Prasad.  My apologies Pradeep.
>
> -----Original Message-----
> From: Tim Gilbert
> Sent: Wednesday, October 20, 2010 12:18 PM
> To: 'solr-user@lucene.apache.org'
> Subject: RE: Mulitple facet - fq
>
> As Prasad said:
>
>        fq=(category:corporate category:personal)
>
> But you might want to check your schema.xml to see what you have here:
>
>        <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
>        <solrQueryParser defaultOperator="AND" />
>
> You can always specify your operator in your search between your facets.
>
>
>        fq=(category:corporate AND category:personal)
>
> or
>
>        fq=(category:corporate OR category:personal)
>
> I have an application where I am using searches on 10 more facets with
> AND OR + and - options and it works flawlessly.
>
>        fq=(+category:corporate AND -category:personal)
>
> meaning category is corporate and not personal.
>
> Tim
>
> -----Original Message-----
> From: Pradeep Singh [mailto:pksinghus@gmail.com]
> Sent: Wednesday, October 20, 2010 11:56 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Mulitple facet - fq
>
> fq=(category:corporate category:personal)
>
> On Wed, Oct 20, 2010 at 7:39 AM, Yavuz Selim YILMAZ
> <yvzslmyilmazz@gmail.com
> > wrote:
>
> > Under category facet, there are multiple selections, whicih can be
> > personal,corporate or other ....
> >
> > How can I get both "personal" and "corporate" ones, I tried
> > fq=category:corporate&fq=category:personal
> >
> > It looks easy, but I can't find the solution.
> >
> >
> > --
> >
> > Yavuz Selim YILMAZ
> >
>

RE: Mulitple facet - fq

Posted by Tim Gilbert <TI...@morningstar.com>.
Sorry, what Pradeep said, not Prasad.  My apologies Pradeep.

-----Original Message-----
From: Tim Gilbert 
Sent: Wednesday, October 20, 2010 12:18 PM
To: 'solr-user@lucene.apache.org'
Subject: RE: Mulitple facet - fq

As Prasad said:

	fq=(category:corporate category:personal)

But you might want to check your schema.xml to see what you have here:

	<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
	<solrQueryParser defaultOperator="AND" />

You can always specify your operator in your search between your facets.


	fq=(category:corporate AND category:personal)

or

	fq=(category:corporate OR category:personal)

I have an application where I am using searches on 10 more facets with
AND OR + and - options and it works flawlessly.

	fq=(+category:corporate AND -category:personal)

meaning category is corporate and not personal.

Tim

-----Original Message-----
From: Pradeep Singh [mailto:pksinghus@gmail.com] 
Sent: Wednesday, October 20, 2010 11:56 AM
To: solr-user@lucene.apache.org
Subject: Re: Mulitple facet - fq

fq=(category:corporate category:personal)

On Wed, Oct 20, 2010 at 7:39 AM, Yavuz Selim YILMAZ
<yvzslmyilmazz@gmail.com
> wrote:

> Under category facet, there are multiple selections, whicih can be
> personal,corporate or other ....
>
> How can I get both "personal" and "corporate" ones, I tried
> fq=category:corporate&fq=category:personal
>
> It looks easy, but I can't find the solution.
>
>
> --
>
> Yavuz Selim YILMAZ
>

RE: Mulitple facet - fq

Posted by Tim Gilbert <TI...@morningstar.com>.
As Prasad said:

	fq=(category:corporate category:personal)

But you might want to check your schema.xml to see what you have here:

	<!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
	<solrQueryParser defaultOperator="AND" />

You can always specify your operator in your search between your facets.


	fq=(category:corporate AND category:personal)

or

	fq=(category:corporate OR category:personal)

I have an application where I am using searches on 10 more facets with
AND OR + and - options and it works flawlessly.

	fq=(+category:corporate AND -category:personal)

meaning category is corporate and not personal.

Tim

-----Original Message-----
From: Pradeep Singh [mailto:pksinghus@gmail.com] 
Sent: Wednesday, October 20, 2010 11:56 AM
To: solr-user@lucene.apache.org
Subject: Re: Mulitple facet - fq

fq=(category:corporate category:personal)

On Wed, Oct 20, 2010 at 7:39 AM, Yavuz Selim YILMAZ
<yvzslmyilmazz@gmail.com
> wrote:

> Under category facet, there are multiple selections, whicih can be
> personal,corporate or other ....
>
> How can I get both "personal" and "corporate" ones, I tried
> fq=category:corporate&fq=category:personal
>
> It looks easy, but I can't find the solution.
>
>
> --
>
> Yavuz Selim YILMAZ
>

Re: Mulitple facet - fq

Posted by Pradeep Singh <pk...@gmail.com>.
fq=(category:corporate category:personal)

On Wed, Oct 20, 2010 at 7:39 AM, Yavuz Selim YILMAZ <yvzslmyilmazz@gmail.com
> wrote:

> Under category facet, there are multiple selections, whicih can be
> personal,corporate or other ....
>
> How can I get both "personal" and "corporate" ones, I tried
> fq=category:corporate&fq=category:personal
>
> It looks easy, but I can't find the solution.
>
>
> --
>
> Yavuz Selim YILMAZ
>