manticoresoftware / manticoresoftware/go-sdk

How to specify a database

Open
#24 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I checkout all the file, I did not find an example on how to specify database. So I try to use Sphinxql() function directly, like

```
cl := manticore.NewClient()
cl.SetServer("localhost", 9312)
cl.Open()
foo, err := cl.Sphinxql("select * from kgall; show meta;")
fmt.Println(foo, err)
```

But I got " [ERROR 1064 (42000): unknown local table(s) 'kgall' in search request] " for response.
What should I do to do a query job.

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 with the SDK files and examples referenced by the reporter, then trace the Sphinxql call in the shown Go snippet. Determine how the client expects a database or search index to be specified and document a working query example, including the expected result or error handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation, search
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.