Elasticsearch-py IndicesClient.analyze cannot handle unicode data


(Alexey Kotlyarov) #1

We've ran into a problem with the Python client: IndicesClient.analyze
throws an exception with a unicode body. For example, this fails:

client.indices.analyze(body=u'привет')

Unicode in other places works fine; am I doing something wrong or is it
okay to submit a patch?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/26b5b121-811a-452e-986d-a41be37e916b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Honza Král) #2

Hi Alexey, this is indeed a bug, no need to submit a patch, fix is coming.

Thanks for catching this!

On Wed, Dec 4, 2013 at 6:10 AM, Alexey Kotlyarov koterpillar@gmail.comwrote:

We've ran into a problem with the Python client: IndicesClient.analyze
throws an exception with a unicode body. For example, this fails:

client.indices.analyze(body=u'привет')

Unicode in other places works fine; am I doing something wrong or is it
okay to submit a patch?

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/26b5b121-811a-452e-986d-a41be37e916b%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDirJ%2Bgt1aTUXjxvtsnKNFvpr7rsC9gJ3Vb3X6WNaFdH1mg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3