lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunther, Andrew" <Gunth...@si.edu>
Subject RE: Faceted search glitch???
Date Fri, 09 Feb 2007 21:30:32 GMT
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:give2me_78@hotmail.com] 
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


Mime
View raw message