sphinx在Python中搜索AssertionError错误

时间:2017-04-18 08:56:21

标签: python python-3.x sphinx

我正在尝试用python运行sphinx搜索但是收到错误

我试试这段代码

python3

import sphinxapi 

client = sphinxapi.SphinxClient()

client.SetServer('127.0.0.1',9312)

client.Query("english","language_index")

收到错误

client.Query("english","language_index")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/sphinxapi/__init__.py", line 579, in Query
    assert (len(self._reqs) == 0)
AssertionError

0 个答案:

没有答案