.println(encoded2);
> Output:
> %22mr.+bill%22+oh+n%3F
> %5C%22mr.+bill%5C%22+oh+n%5C%3F
>
> 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:
> http://luc
;q=%22mr.+bill%22+oh+n%3F&fq=&start=0&rows=50&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=
--
View this message in context:
http://lucene.472066.n3.nabble.com/Does-SOLR-provide-a-java-class-to-perform-url-encoding-tp842660p843177.html
Sent from the Solr - User mailing list archive at Nabble.com.
oder to translate s1, then replace %22 with ", %3F
with ?, and so on?
Or is there a better way?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Does-SOLR-provide-a-java-class-to-perform-url-encoding-tp842660p842744.html
Sent from the Solr - User mailing list archive at Nabble.com.
Java provides one. You probably want to use utf-8 as the encoding scheme.
http://java.sun.com/javase/6/docs/api/java/net/URLEncoder.html
Note you also will want to strip or escape character that are meaningful
in the Solr/Lucene query syntax.
http://lucene.apache.org/java/2_4_0/queryparsersyn
=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=
Since the admin page uses it I would image that this functionality is there,
but having some trouble finding it.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Does-SOLR-provide-a-java-