lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JohnRodey <>
Subject Re: Does SOLR provide a java class to perform url-encoding
Date Tue, 25 May 2010 17:58:17 GMT

Thanks Sean, that was exactly what I need.  One question though...

How to correctly retain the Solr specific characters.
I tried adding escape chars but URLEncoder doesn't seem to care about that:
String s1 = "\"mr. bill\" oh n?";
String s2 = "\\\"mr. bill\\\" oh n\\?";
String encoded1 = URLEncoder.encode(s1, "UTF-8");
String encoded2 = URLEncoder.encode(s2, "UTF-8");

Should I allow the URLEncoder to translate s1, then replace %22 with ", %3F
with ?, and so on?
Or is there a better way?
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message