sphinx search AssertionError error in Python

狂风中的少年 提交于 2019-12-12 21:49:58

问题


I am trying ro run sphinx search with python but getting error

I try this code

python3

import sphinxapi 

client = sphinxapi.SphinxClient()

client.SetServer('127.0.0.1',9312)

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

get an error

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

来源:https://stackoverflow.com/questions/43467783/sphinx-search-assertionerror-error-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!