如果这是很基本的内容,请原谅我,但是我有Python 2.7和Elasticsearch 2.1.1,我只是想使用删除索引
es.delete(index='researchtest', doc_type='test')
但这给了我
return func(*args, params=params, **kwargs)
TypeError: delete() takes at least 4 arguments (4 given)
我也试过
es.delete_by_query(index='researchtest', doc_type='test',body='{"query":{"match_all":{}}}')
但我明白了
AttributeError: 'Elasticsearch' object has no attribute 'delete_by_query'
知道为什么吗?API是否已针对python 2.1.1更改?