Elastic Python API查看indices碰到錯誤:TypeError: Positional arguments can’t be used with Elasticsearch API methods. Instead only use keyword arguments.

Python code里用到 es.indices.get_alias("*"),這是老版本。

會遇到報錯:TypeError: Positional arguments can't be used with Elasticsearch API methods. Instead only use keyword arguments

新版本改成了 es.indices.get_alias(index="*")

就可以了。

Leave a Comment

Your email address will not be published.