aparo / pyes

Python connector for ElasticSearch - the pythonic way to use ElasticSearch
BSD 3-Clause "New" or "Revised" License
607 stars 270 forks source link

create_index_if_missing doesn't exist #489

Closed lorencarvalho closed 9 years ago

lorencarvalho commented 9 years ago
>>> 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'
mavarick commented 9 years ago

use: es.indices.create_index_if_missing

lorencarvalho commented 9 years ago

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

mavarick commented 8 years ago

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