Monthly Archive: December 2023

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=”*”) 就可以了。