Re: fq field with facets

2011-02-23 Thread dhanesh
Hi I have faced the same problem and I solved it by adding double quotes dhanesh s.r On 2/23/2011 7:47 PM, Erik Hatcher wrote: Try - fq={!field f=category} You can also try surrounding with quotes, but that gets tricky and you'll need to escape things possibly. Or you could simply backsla

Re: fq field with facets

2011-02-23 Thread Chris Hostetter
: fq={!field f=category} There are subtle nuanced cases where "field" won't work properly, which is why i usually recommend "raw", but there are also subtle nuanced cases where raw won't work either (although in my opinion those cases are much less likely in typical faceting) this is why t

Re: fq field with facets

2011-02-23 Thread Bill Bell
Double quotes should work as well. Bill Bell Sent from mobile On Feb 23, 2011, at 7:17 AM, Erik Hatcher wrote: > Try - > > fq={!field f=category} > > You can also try surrounding with quotes, but that gets tricky and you'll > need to escape things possibly. Or you could simply backslash e

Re: fq field with facets

2011-02-23 Thread Rosa (Anuncios)
I've got it, the problem was from php-solr-client... for some reason the php urlencode function does not work in this script? So the accent are not converted. Thanks anyway Le 23/02/2011 16:11, Erik Hatcher a écrit : On Feb 23, 2011, at 10:06 , Rosa (Anuncios) wrote: Thanks Erik, this work

Re: fq field with facets

2011-02-23 Thread Erik Hatcher
On Feb 23, 2011, at 10:06 , Rosa (Anuncios) wrote: > Thanks Erik, > > this works well. > > the only thing, but i'm not sure is comes from there is with the accents: > > q=memoire+sd&fq={!field f=category}Electronique+>+Cartes+mémoires > > any tricks for that? Hard to say what the problem is.

Re: fq field with facets

2011-02-23 Thread Rosa (Anuncios)
Thanks Erik, this works well. the only thing, but i'm not sure is comes from there is with the accents: q=memoire+sd&fq={!field f=category}Electronique+>+Cartes+mémoires any tricks for that? I've noticed that i've got the same issue in a normal simple query? Le 23/02/2011 15:17, Erik Hatcher

Re: fq field with facets

2011-02-23 Thread Stefan Matheis
On Wed, Feb 23, 2011 at 3:57 PM, Erik Hatcher wrote: > There's some details of this here: > Oh yes, i'm wrong - just ignore my post .. got confused from the similar syntax, i'm sorry.

Re: fq field with facets

2011-02-23 Thread Erik Hatcher
On Feb 23, 2011, at 09:25 , Savvas-Andreas Moysidis wrote: > Hi Eric, > > could you please let us know where can we find more info about this notation > ( fq={!field f=category})? What is it called, how to use it etc? Is there a > wiki page? There's some details of this here:

Re: fq field with facets

2011-02-23 Thread Stefan Matheis
Savvas, have a look here: http://wiki.apache.org/solr/FunctionQuery On Wed, Feb 23, 2011 at 3:25 PM, Savvas-Andreas Moysidis wrote: > Hi Eric, > > could you please let us know where can we find more info about this notation > ( fq={!field f=category})? What is it called, how to use it etc? Is the

Re: fq field with facets

2011-02-23 Thread Savvas-Andreas Moysidis
Hi Eric, could you please let us know where can we find more info about this notation ( fq={!field f=category})? What is it called, how to use it etc? Is there a wiki page? Thanks, - Savvas On 23 February 2011 14:17, Erik Hatcher wrote: > Try - > > fq={!field f=category} > > You can also try

Re: fq field with facets

2011-02-23 Thread Erik Hatcher
Try - fq={!field f=category} You can also try surrounding with quotes, but that gets tricky and you'll need to escape things possibly. Or you could simply backslash escape the whitespace (and colon, etc) characters. Erik On Feb 23, 2011, at 08:25 , Rosa (Anuncios) wrote: > Hi, >

Re: fq field with facets

2011-02-23 Thread Savvas-Andreas Moysidis
Hello, you could try wrapping your fq terms in double quotes as in: ?q=home&fq=category:"Appartement > Sale" On 23 February 2011 13:25, Rosa (Anuncios) wrote: > Hi, > > I'm trying to reduce results from facets. (by category with my schema) > > My category field is String type in my schema.xml.

fq field with facets

2011-02-23 Thread Rosa (Anuncios)
Hi, I'm trying to reduce results from facets. (by category with my schema) My category field is String type in my schema.xml. The problem i've got is when the category value has space or special caracter it doen't work? Example: ?q=home&fq=category:Appartement ---> works fine ?q=home&fq=c