create_index_if_missing doesn't exist
lorencarvalho opened this issue · comments
Loren Carvalho commented
>>> from pyes import ES
>>> es = ES('127.0.0.1:9200')
>>> es.create_index_if_missing(index)
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: 'ES' object has no attribute 'create_index_if_missing'
Liu commented
use:
es.indices.create_index_if_missing
Loren Carvalho commented
thanks, I ended up rolling back to a previous version!
Liu commented
yeah, most pyes docs, including official one are not for new version, it makes confusion!