Re: How can I specify the UTF-8 codec when searching ES from python?

2015-04-03 Thread Honza Král
Hi Peter, the easiest way is to just use python dictionaries - not strings containing json. Then everything will be correctly encoded and decoded into utf-8 and you can just work with unicode strings in your app. Hope this helps On Fri, Apr 3, 2015 at 8:13 PM, Peter Trei wrote: > This issue is

How can I specify the UTF-8 codec when searching ES from python?

2015-04-03 Thread Peter Trei
This issue is probably due to my noobishness to ELK, Python, and Unicode. I have an index containing logstash-digested logs, including a field 'host_req', which contains a host name. Using Elasticsearch-py, I'm pulling that host name out of the record, and using it to search in another index. Ho