You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running through your examples using python 3.5, I get the type error noted in the headline. Apparently the content type returned from request.get() is now bytes instead of str. In addition, some of the names in your 18+ retrieval set contain unicode characters.
To resolve the problem I changed each reference from res.content to res.content.decode() and everything loads as expected.
Two additional issues exist though:
The "Darth Vader" search returns no hits.
The "fuzzy_like_this_field" search returns an error: RequestError: TransportError(400, 'parsing_exception', 'no [query] registered for [fuzzy_like_this_field]')
I don't know if you intend to maintain this or not, but wanted to thank you for the brief tutorial and let you know about the issues.
Marc
The text was updated successfully, but these errors were encountered:
Hello Enesto,
Thanks for the humorous intro to elasticsearch!
Running through your examples using python 3.5, I get the type error noted in the headline. Apparently the content type returned from request.get() is now bytes instead of str. In addition, some of the names in your 18+ retrieval set contain unicode characters.
To resolve the problem I changed each reference from
res.content
tores.content.decode()
and everything loads as expected.Two additional issues exist though:
RequestError: TransportError(400, 'parsing_exception', 'no [query] registered for [fuzzy_like_this_field]')
I don't know if you intend to maintain this or not, but wanted to thank you for the brief tutorial and let you know about the issues.
Marc
The text was updated successfully, but these errors were encountered: