pyes icon indicating copy to clipboard operation
pyes copied to clipboard

Dictionaries no longer work as queries

Open dcramer opened this issue 14 years ago • 2 comments

in 0.16.0 you could send a raw dictionary as a query value, now it expects a Query instance as part of the ResultSet:

Offending code:

pyes.py:1407: query = self.query.serialize()

>>> *** AttributeError: 'dict' object has no attribute 'serialize'

dcramer avatar Nov 02 '11 22:11 dcramer

This seems to also have affected .get() (which before i had to do .get()['fields'] on)

(I do note the reference in the changelog, but the docstrings/code still seem to allow dicts as params)

dcramer avatar Nov 02 '11 23:11 dcramer

See also #141.

mchruszcz avatar Dec 23 '11 11:12 mchruszcz