As the docs states that [go-sdk] also may be used in many cases to access SphinxSearch daemon as well I tried this with Sphinx 2.2
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on all interfaces, port=9312
listening on all interfaces, port=9306
precaching index 'test1'
precaching index 'test1stemmed'
precaching index 'rt'
My code :
cl := manticore.NewClient()
cl.SetServer("127.0.0.1", 9306)
cl.Open()
res, err := cl.Sphinxql(`replace into test1 values(1,'my subject', 'my content', 15)`)
fmt.Println(res, err)
But I get: [] Wrong version num received: 1258291200
I'm wondering if there is a problem with my code or go-sdk is not compatible with Sphinx 2.2 ?
And if the later is the case, which sphinx version is compatible with go-sdk?
As the docs states that
[go-sdk] also may be used in many cases to access SphinxSearch daemon as wellI tried this withSphinx 2.2My code :
But I get:
[] Wrong version num received: 1258291200I'm wondering if there is a problem with my code or go-sdk is not compatible with
Sphinx 2.2?And if the later is the case, which sphinx version is compatible with go-sdk?