manticoresoftware / manticoresoftware/go-sdk

Failed to read searchd response

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
58
Forks
9
PR merge metrics
No merged PRs in 30d

Description

RunQuery returns error if index is not "*". See an example below:

package main

import (
	"fmt"
	"github.com/manticoresoftware/go-sdk/manticore"
)

func main() {
	cl := manticore.NewClient()
	cl.SetServer("manticore.host.com", 9308)

	fmt.Println(cl.RunQuery(manticore.NewSearch("avatar", "myindex_idx", "")))
}

The output is <nil> failed to read searchd response (status=0, ver=289, len=18103, read=4027)

go-sdk version: v0.0.0-20200819180014-70a49dc3179d
Manticore version: 3.5.4-210107-f70faec5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at RunQuery and reproduce the example against a named index rather than "*". Trace the searchd response-reading path to determine why the returned response is incomplete; done means the example reads the full response without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.