On Jun 6, 2009, at 9:52 PM, Thanh Doan wrote:
webapp=/solr path=/select
params={facet=true&fl=pk_i,score&facet.mincount=1&q=([*+TO+*]+AND+*
cat2_facet:Top+Wear*)+AND+ (type_s:Item )&facet .limit =-1&facet.field=cat1_facet&facet.field=cat2_facet&qt=standard&wt=ruby}
*hits=0* status=0 QTime=10

...


Have you ever used a string facet field in which the facet value contains 2
or more words like
Brand:Hewlett Packard

If yes, what the query looks like exactly to filter the results based on the
facet value = 'Hewlett Packard'?

If you have spaces in a string type field and need to query on it, you must surround it by quotes: cat2_facet:"Top Wear"

You also need to be sure to escape any characters that can cause trouble with the query parser.

One tip from the query you have, separate out the facet drill in clause to an fq parameter: &fq=cat2_facet:"Top Wear" - it'll allow Solr to cache those separately.

        Erik

Reply via email to