Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong version num received for sphinixsearch #19

Open
k0fi opened this issue Mar 10, 2021 · 1 comment
Open

Wrong version num received for sphinixsearch #19

k0fi opened this issue Mar 10, 2021 · 1 comment

Comments

@k0fi
Copy link

k0fi commented Mar 10, 2021

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?

@sanikolaev
Copy link
Contributor

Please try port 9312 instead of 9306 in cl.SetServer("127.0.0.1", 9306)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants