-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
send two query in same conn will occur this error:
doRequest > just read 0 bytes into header!
like this:
cli := sphinx.NewClient().SetServer(sphinxIP, sphinxPort)
wds, err := cli.BuildKeywords(keyword, "content", false)
var newKeyword []string
for _, wd := range wds {
if len([]rune(wd.Tokenized)) >=2 {
newKeyword = append(newKeyword, wd.Tokenized)
}
}
res, err := cli.Query(strings.Join(newKeyword, "|"), "content addcontent", "")
if err != nil {
return total, rows, err
}
will return err:
doRequest > just read 0 bytes into header!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels