我是elasticsearch的新手,我知道有两个官方的elasticsearch客户端供应,但是当我使用python elasticsearch时,我找不到如何使用传输客户端..
我阅读了整个文档,如下所示:
https://elasticsearch-py.readthedocs.io/en/master/index.html
我还搜索了一些文档,我找不到将elasticsearch与python一起使用的方法。另外,在一个文档中,它说:
Using the native protocol from anything other than Java is not recommended, as it would entail implementing a lot of custom serialization.
这是否意味着 python elasticsearch 无法使用传输客户端?
最佳答案
传输客户端是用 Java 编写的,因此从 Python 使用它的唯一方法是切换到 Jython。
关于python elasticsearch使用传输客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38435845/