Good call. Alternately, for facet limiting, you may find it simpler,
easier (and very very slightly more efficient for Solr) to use either
the "raw" or "field" query parsers, that don't do the "pre-tokenization"
that the standard query parser does, which is what is making the quotes
required.
&fq={!field f=solr_field}My Multi-Word Value
&fq={!raw f=solr_field}Multi-Word Value
(Still URL-escape though, not shown above for clarity).
These ways you also won't have to worry about if one of your values
accidentally includes a literal double quote, or something like that.
For a non-tokenized String field like we're talking about here, !field
and !raw, I think, will be effectively identical.
http://wiki.apache.org/solr/SolrQuerySyntax#Other_built-in_useful_query_parsers
Jonathan
PeterKerk wrote:
O wow, the quotes did the trick...thanks! :)