If you want to treat commas as spaces, one quick and dirty way of doing that is
this:
s/,/, /g
Do that to the query string before you send it to Solr and you are done. :)
Otis
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Hadoop ecosystem search :: http://search-hadoop.com/
With the 2 searches:
Here's the debug output:
q=Pittsburgh,PA,15222,US
parsedquery_toString
*text:"pittsburgh pa 15222 us"*
(returns 0 matches)
q=Pittsburgh, PA, 15222, US
parsedquery_toString
*text:pittsburgh text:pa text:15222 text:us**
(*returns x matches)
So the first query is searching on