Hi Jie,
maybe there is a simple solution. When we used tomcat as servlet
container for solr I notices similar problems. Even with the hints from
the solr wiki about unicode and Tomcat, i wasn't able to fix this.
So we switched back to Jetty, querys like "q=allfields2%3A能力" are
reliable now.
unfortunately solrj is not an option here...
we will have to make a quick fix with a patch out in production.
I am still unable to make the solr (3.5) take url encoded query. again
passing non-urlencoded query string works with non-ASIIC (Chinese), but
fails return anything when sending request wi
:-) Otis, I also looked at solrJ source code, seems exactly what I am doing
here... but I probably will do what you suggested ... thanks
Jie
--
View this message in context:
http://lucene.472066.n3.nabble.com/POST-query-with-non-ASCII-to-solr-using-httpclient-wont-work-tp4032957p4032973.html
Se
Jie Sun,
Just use solrj :)
Otis
Solr & ElasticSearch Support
http://sematext.com/
On Jan 12, 2013 7:40 PM, "Jie Sun" wrote:
> When I use HttpClient and its PostMethod to post a query with some Chinese,
> solr fails returning any record, or return everything.
> ... ...
>