manticoresoftware / manticoresoftware/go-sdk
Wrong version num received for sphinixsearch
- Dominant language
- Go
- Stars
- 58
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Open, SetServer, and Sphinxql calls shown in the issue, then trace how the client negotiates the server version and sends the SQL request. Compare that protocol handling with Sphinx 2.2 on port 9306. Done means identifying whether the failure is caused by an unsupported Sphinx version or by the example code, and documenting the compatible version or required usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100