我正在尝试用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