【发布时间】:2013-05-30 02:36:52
【问题描述】:
我正在尝试获取一个使用 pyes 进行弹性搜索的简单示例,但我无法让起始示例正常工作。我正在关注此处找到的文档:http://pyes.readthedocs.org/en/latest/manual/usage.html
只是尝试运行以下函数,但它并不完全有效。
def index_transcripts():
conn = ES('127.0.0.1:9200')
conn.indices.create_index("test-index")
index_transcripts()
在我看来这应该很简单,但我得到了以下错误:
pyes.exceptions.NoServerAvailable: list index out of range
我刚刚开始使用 Elastic Search,pyes 似乎是一个很棒的库,但我显然不确定应该如何使用它。任何帮助将不胜感激。
【问题讨论】:
标签: python indexing elasticsearch pyes