Try surrounding you mutli-word query in quotes: education_facet:"High
School".  Also do you want to use the filter query param instead
fq=education_facet:"High School"

-Andrew

-----Original Message-----
From: Peter McPeterson [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 4:22 PM
To: solr-user@lucene.apache.org
Subject: Faceted search glitch???

On Solr, I'm indexing a facet field which contains different values on
each 
record (of course) but it doesn't seem to be working the way I had
expected. 
For instance:

When looking for:
http://localhost:8983/solr/select/?q=sales&facet=true&facet.field=educat
ion_facet

it returns the facet:
'education_facet'=>{
         'Bachelor'=>20,
         'Associate'=>35,
         'Doctorate'=>1,
         'High School'=>150,
         'Law Degree'=>0,
         'Master'=>0}

but when I modify my query to look for High School:
http://localhost:8983/solr/select/?q=sales+AND+education_facet:High+Scho
ol&facet=true&facet.field=education_facet

it returns nothing. But when I use single-word fields such as Bachelor
or 
Associate it works fine.

Any idea?

Thanks a lot

_________________________________________________________________
Check out all that glitters with the MSN Entertainment Guide to the
Academy 
Awards(r)
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2

Reply via email to