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 clico <cl...@mairie-marseille.fr> on 2009/10/07 19:10:29 UTC

Facet query pb

Hello
I have a pb trying to retrieve a tree with facet use

I 've got a field location_field
Each doc in my index has a location_field

Location field can be
continent/country/city


I have 2 queries:

http://server/solr//select?fq=(location_field:NORTH*) : ok, retrieve docs

http://server/solr//select?fq=(location_field:NORTH AMERICA*) : not ok


I think with NORTH AMERICA I have a pb with the space caractere

Could u help me



-- 
View this message in context: http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet query pb

Posted by clico <cl...@mairie-marseille.fr>.


clico wrote:
> 
> 
> clico wrote:
>> 
>> 
>> 
>> clico wrote:
>>> 
>>> That's not a pb
>>> I want to use that in order to drill down a tree
>>> 
>>> 
>>> Christian Zambrano wrote:
>>>> 
>>>> Clico,
>>>> 
>>>> Because you are doing a wildcard query, the token 'AMERICA' will not be 
>>>> analyzed at all. This means that 'AMERICA*' will NOT match 'america'.
>>>> 
>>>> On 10/07/2009 12:30 PM, Avlesh Singh wrote:
>>>>> I have no idea what "pb" mean but this is what you probably want -
>>>>> fq=(location_field:(NORTH AMERICA*))
>>>>>
>>>>> Cheers
>>>>> Avlesh
>>>>>
>>>>> On Wed, Oct 7, 2009 at 10:40 PM, clico<cl...@mairie-marseille.fr> 
>>>>> wrote:
>>>>>
>>>>>    
>>>>>> Hello
>>>>>> I have a pb trying to retrieve a tree with facet use
>>>>>>
>>>>>> I 've got a field location_field
>>>>>> Each doc in my index has a location_field
>>>>>>
>>>>>> Location field can be
>>>>>> continent/country/city
>>>>>>
>>>>>>
>>>>>> I have 2 queries:
>>>>>>
>>>>>> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>:
>>>>>> ok, retrieve docs
>>>>>>
>>>>>> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*)
>>>>>> : not ok
>>>>>>
>>>>>>
>>>>>> I think with NORTH AMERICA I have a pb with the space caractere
>>>>>>
>>>>>> Could u help me
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
>>>>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>      
>>>>>    
>>>> 
>>>> 
>>> 
>>> 
>> 
>> I'm sorry, this syntax does not work anymore
>> 
> 
> 
> When I try a debug mode here is the result
> 
> <arr name="parsed_filter_queries">
> <str>+location_field:NORTH+location_field:AMERICA*</str>
> </arr>
> 
> My location_field is a type String, containing 
> NORTH AMERICA/NY/NYC
> 
> I can use
> fq=(location_field:NORTH*AMERICA*) replacing all whitespaces by *, but I m
> not sure that's a good solution
> 
> Thanks for helping me
> 
> 
> 
> 
one can help me?

-- 
View this message in context: http://www.nabble.com/Facet-query-pb-tp25790667p25847849.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet query pb

Posted by clico <cl...@mairie-marseille.fr>.


clico wrote:
> 
> 
> 
> clico wrote:
>> 
>> That's not a pb
>> I want to use that in order to drill down a tree
>> 
>> 
>> Christian Zambrano wrote:
>>> 
>>> Clico,
>>> 
>>> Because you are doing a wildcard query, the token 'AMERICA' will not be 
>>> analyzed at all. This means that 'AMERICA*' will NOT match 'america'.
>>> 
>>> On 10/07/2009 12:30 PM, Avlesh Singh wrote:
>>>> I have no idea what "pb" mean but this is what you probably want -
>>>> fq=(location_field:(NORTH AMERICA*))
>>>>
>>>> Cheers
>>>> Avlesh
>>>>
>>>> On Wed, Oct 7, 2009 at 10:40 PM, clico<cl...@mairie-marseille.fr> 
>>>> wrote:
>>>>
>>>>    
>>>>> Hello
>>>>> I have a pb trying to retrieve a tree with facet use
>>>>>
>>>>> I 've got a field location_field
>>>>> Each doc in my index has a location_field
>>>>>
>>>>> Location field can be
>>>>> continent/country/city
>>>>>
>>>>>
>>>>> I have 2 queries:
>>>>>
>>>>> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>:
>>>>> ok, retrieve docs
>>>>>
>>>>> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*)
>>>>> : not ok
>>>>>
>>>>>
>>>>> I think with NORTH AMERICA I have a pb with the space caractere
>>>>>
>>>>> Could u help me
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
>>>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>      
>>>>    
>>> 
>>> 
>> 
>> 
> 
> I'm sorry, this syntax does not work anymore
> 


When I try a debug mode here is the result

<arr name="parsed_filter_queries">
<str>+location_field:NORTH+location_field:AMERICA*</str>
</arr>

My location_field is a type String, containing 
NORTH AMERICA/NY/NYC

Thanks for helping me



-- 
View this message in context: http://www.nabble.com/Facet-query-pb-tp25790667p25802964.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet query pb

Posted by clico <cl...@mairie-marseille.fr>.


clico wrote:
> 
> That's not a pb
> I want to use that in order to drill down a tree
> 
> 
> Christian Zambrano wrote:
>> 
>> Clico,
>> 
>> Because you are doing a wildcard query, the token 'AMERICA' will not be 
>> analyzed at all. This means that 'AMERICA*' will NOT match 'america'.
>> 
>> On 10/07/2009 12:30 PM, Avlesh Singh wrote:
>>> I have no idea what "pb" mean but this is what you probably want -
>>> fq=(location_field:(NORTH AMERICA*))
>>>
>>> Cheers
>>> Avlesh
>>>
>>> On Wed, Oct 7, 2009 at 10:40 PM, clico<cl...@mairie-marseille.fr> 
>>> wrote:
>>>
>>>    
>>>> Hello
>>>> I have a pb trying to retrieve a tree with facet use
>>>>
>>>> I 've got a field location_field
>>>> Each doc in my index has a location_field
>>>>
>>>> Location field can be
>>>> continent/country/city
>>>>
>>>>
>>>> I have 2 queries:
>>>>
>>>> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>:
>>>> ok, retrieve docs
>>>>
>>>> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*)
>>>> : not ok
>>>>
>>>>
>>>> I think with NORTH AMERICA I have a pb with the space caractere
>>>>
>>>> Could u help me
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
>>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>>      
>>>    
>> 
>> 
> 
> 

I'm sorry, this syntax does not work anymore
-- 
View this message in context: http://www.nabble.com/Facet-query-pb-tp25790667p25799911.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet query pb

Posted by clico <cl...@mairie-marseille.fr>.
That's not a pb
I want to use that in order to drill down a tree


Christian Zambrano wrote:
> 
> Clico,
> 
> Because you are doing a wildcard query, the token 'AMERICA' will not be 
> analyzed at all. This means that 'AMERICA*' will NOT match 'america'.
> 
> On 10/07/2009 12:30 PM, Avlesh Singh wrote:
>> I have no idea what "pb" mean but this is what you probably want -
>> fq=(location_field:(NORTH AMERICA*))
>>
>> Cheers
>> Avlesh
>>
>> On Wed, Oct 7, 2009 at 10:40 PM, clico<cl...@mairie-marseille.fr>  wrote:
>>
>>    
>>> Hello
>>> I have a pb trying to retrieve a tree with facet use
>>>
>>> I 've got a field location_field
>>> Each doc in my index has a location_field
>>>
>>> Location field can be
>>> continent/country/city
>>>
>>>
>>> I have 2 queries:
>>>
>>> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>:
>>> ok, retrieve docs
>>>
>>> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*)
>>> : not ok
>>>
>>>
>>> I think with NORTH AMERICA I have a pb with the space caractere
>>>
>>> Could u help me
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>>
>>>      
>>    
> 
> 

-- 
View this message in context: http://www.nabble.com/Facet-query-pb-tp25790667p25792177.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Facet query pb

Posted by Christian Zambrano <cz...@gmail.com>.
Clico,

Because you are doing a wildcard query, the token 'AMERICA' will not be 
analyzed at all. This means that 'AMERICA*' will NOT match 'america'.

On 10/07/2009 12:30 PM, Avlesh Singh wrote:
> I have no idea what "pb" mean but this is what you probably want -
> fq=(location_field:(NORTH AMERICA*))
>
> Cheers
> Avlesh
>
> On Wed, Oct 7, 2009 at 10:40 PM, clico<cl...@mairie-marseille.fr>  wrote:
>
>    
>> Hello
>> I have a pb trying to retrieve a tree with facet use
>>
>> I 've got a field location_field
>> Each doc in my index has a location_field
>>
>> Location field can be
>> continent/country/city
>>
>>
>> I have 2 queries:
>>
>> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>: ok, retrieve docs
>>
>> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*) : not ok
>>
>>
>> I think with NORTH AMERICA I have a pb with the space caractere
>>
>> Could u help me
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
>>      
>    

Re: Facet query pb

Posted by Avlesh Singh <av...@gmail.com>.
I have no idea what "pb" mean but this is what you probably want -
fq=(location_field:(NORTH AMERICA*))

Cheers
Avlesh

On Wed, Oct 7, 2009 at 10:40 PM, clico <cl...@mairie-marseille.fr> wrote:

>
> Hello
> I have a pb trying to retrieve a tree with facet use
>
> I 've got a field location_field
> Each doc in my index has a location_field
>
> Location field can be
> continent/country/city
>
>
> I have 2 queries:
>
> http://server/solr//select?fq=(location_field:NORTH*)<http://server/solr//select?fq=%28location_field:NORTH*%29>: ok, retrieve docs
>
> http://server/solr//select?fq=(location_field:NORTH<http://server/solr//select?fq=%28location_field:NORTH>AMERICA*) : not ok
>
>
> I think with NORTH AMERICA I have a pb with the space caractere
>
> Could u help me
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Re: Facet query pb

Posted by Todd Benge <to...@gmail.com>.
Aqqqqq

On 10/7/09, clico <cl...@mairie-marseille.fr> wrote:
>
> Hello
> I have a pb trying to retrieve a tree with facet use
>
> I 've got a field location_field
> Each doc in my index has a location_field
>
> Location field can be
> continent/country/city
>
>
> I have 2 queries:
>
> http://server/solr//select?fq=(location_field:NORTH*) : ok, retrieve docs
>
> http://server/solr//select?fq=(location_field:NORTH AMERICA*) : not ok
>
>
> I think with NORTH AMERICA I have a pb with the space caractere
>
> Could u help me
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Facet-query-pb-tp25790667p25790667.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

-- 
Sent from my mobile device