aparo / pyes

Python connector for ElasticSearch - the pythonic way to use ElasticSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

create_index_if_missing doesn't exist

lorencarvalho opened this issue · comments

>>> 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'
commented

use:
es.indices.create_index_if_missing

thanks, I ended up rolling back to a previous version!

commented

yeah, most pyes docs, including official one are not for new version, it makes confusion!