The phrase solution works as does escaping the space with a backslash:  
fq=Product:Electric\ Guitar ... actually a lot of characters need to be escaped 
like this (amperstands and parenthesis come to mind)...

I assume you already have this indexed as "string", not "text"...

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Andy [mailto:angelf...@yahoo.com] 
Sent: Wednesday, December 22, 2010 1:11 AM
To: solr-user@lucene.apache.org
Subject: White space in facet values

How do I handle facet values that contain whitespace? Say I have a field 
"Product" that I want to facet on. A value for "Product" could be "Electric 
Guitar". How should I handle the white space in "Electric Guitar" during 
indexing? What about when I apply the constraint fq=Product:Electric Guitar?


      

Reply via email to