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 Marc Sturlese <ma...@gmail.com> on 2009/03/06 18:55:01 UTC

query filter with the Key feature

Hey there, I am trying to use filter query with the key feature and I am
experiencing some problems:
If I do this, no problem:

<str name="facet.query">{!key=Fox}title:fox</str>

But if I try to do this, I am getting wrong results:

<str name="facet.query">{!key=Fox}title:big fox</str>
I have also tried:
<str name="facet.query">{!key=Fox}title:"big fox"</str>
and
<str name="facet.query">{!key=Fox}title:\"big fox\"</str>
But the results keep being wrong.
My point is to get the results for the facet "big cat" and tag de xml as Cat
Any advice?
Thanks in advance

-- 
View this message in context: http://www.nabble.com/query-filter-with-the-Key-feature-tp22377435p22377435.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: query filter with the Key feature

Posted by Marc Sturlese <ma...@gmail.com>.
Thanks for you replay. I have already solved... at the begining the mistake
was:

> <str name="facet.query">{!key=Fox}title:big fox</str>
> title:big fox is equivalent to title:big default_field:fox

I was confused about what was happening with the word fox.
Now I catch it!
And:

> We need more details on why you think something is wrong.  Does
> {!key=Fox}title:"big fox"
> Give different results than
> title:"big fox"
> ?

Both give same results, everything is ok!
Thanks



Yonik Seeley-2 wrote:
> 
> On Fri, Mar 6, 2009 at 12:55 PM, Marc Sturlese <ma...@gmail.com>
> wrote:
>> Hey there, I am trying to use filter query with the key feature and I am
>> experiencing some problems:
>> If I do this, no problem:
>>
>> <str name="facet.query">{!key=Fox}title:fox</str>
>>
>> But if I try to do this, I am getting wrong results:
>>
>> <str name="facet.query">{!key=Fox}title:big fox</str>
> 
> title:big fox is equivalent to title:big default_field:fox
> 
>> I have also tried:
>> <str name="facet.query">{!key=Fox}title:"big fox"</str>
> 
> We need more details on why you think something is wrong.  Does
> {!key=Fox}title:"big fox"
>   Give different results than
> title:"big fox"
> ?
> 
> -Yonik
> http://www.lucidimagination.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-query-filter-with-the-Key-feature-tp22377565p22379362.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: query filter with the Key feature

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Fri, Mar 6, 2009 at 12:55 PM, Marc Sturlese <ma...@gmail.com> wrote:
> Hey there, I am trying to use filter query with the key feature and I am
> experiencing some problems:
> If I do this, no problem:
>
> <str name="facet.query">{!key=Fox}title:fox</str>
>
> But if I try to do this, I am getting wrong results:
>
> <str name="facet.query">{!key=Fox}title:big fox</str>

title:big fox is equivalent to title:big default_field:fox

> I have also tried:
> <str name="facet.query">{!key=Fox}title:"big fox"</str>

We need more details on why you think something is wrong.  Does
{!key=Fox}title:"big fox"
  Give different results than
title:"big fox"
?

-Yonik
http://www.lucidimagination.com