Query Suggestion Options
Last word completion
Keyboard Layouts
GitHub

👀 While it's loading, feel free to check out the other repositories:

🔔 To get a notification when it's ready, leave your email here:

By entering your email, you agree to receive notifications and marketing-related emails

Filter by reset

48 results 22 ms in manticoresoftware/manticoresearch-go

SuccessResponse does not include ID

When doing an insert and relying on auto-id to generate and return the ID, the Id field of the SuccessResponse is blank. The actual raw HTTP response body contains the ID, but because the JSON data has the id filed as _id and the struct doesn't explicitly …

darkliquiddarkliquid · 2025-02-21 · 2 · #17

SuccessResponse does not include ID

darkliquiddarkliquid · 2025-02-21 · 2 · #17

We need to investigate the issue further to decide if it should be fixed in the client or in Manticore daemon itself.

Nick-S-2018Nick-S-2018 · 2025-02-18

1👍1

create field can't insert

indexDoc := map[string]any{ "create": time.Now(), } this can‘t insert

zhangstar-hubzhangstar-hub · 2024-11-19 · 5 · #9

SuccessResponse does not include ID

darkliquiddarkliquid · 2025-02-21 · 2 · #17

Looking at the latest master of the you openapi SDK codegen repo, the code generated by that does the right thing (maps _id to Id with json tags), so I expect that it's just the latest stable release (and prior releases) that's been cut for this package …

darkliquiddarkliquid · 2025-02-21

`go get` fails for v6.0.0 due to module path version mismatch

Problem The go get command fails when trying to fetch manticoresearch-go v6.0.0 due to Go modules requiring version suffix in module path for major versions ≥ 2. Steps to Reproduce >> go get github.com/manticoresoftware/[email protected] go: …

yokowuyokowu · 2025-02-07 · 1 · #14

How to get id of new documents create by bulk insert

ninesunqianninesunqian · 2025-01-08 · 4 · #13

waiting

You can find an example of the response which includes ids for all inserted documents here https://manual.manticoresearch.com/Data_creation_and_modification/Adding_documents_to_a_table/Adding_documents_to_a_real-time_table?client=JSON#Bulk-adding- …

sanikolaevsanikolaev · 2024-12-19

fixbug:SearchRequest.Source field has wrong json tag

Accoding to document: https://manual.manticoresearch.com/Searching/Search_results#Source-selection https://manual.manticoresearch.com/Searching/Full_text_matching/Basic_usage?client=match#HTTP-JSON SearchRequest.Source should be with map[string]interface …

fpagyufpagyu · 2024-10-28 · 3 · #8

How to get id of new documents create by bulk insert

ninesunqianninesunqian · 2025-01-08 · 4 · #13

waiting

Sorry, please forgive me for not describing it clearly! I create docs by auto-id. The ids in build request are zero. Are ids in response created by manticore search ?

ninesunqianninesunqian · 2024-12-21

Random EOFs

I'm using sdk v1.6.0 with dockered manticoresearch/manticore:7.0.0 and getting EOF error while replacing 100-1000 documents in loop: if _, _, err := searchApi.IndexAPI.Replace(context.TODO()).InsertDocumentRequest(Manticoresearch.InsertDocumentRequest{ …

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

How to get id of new documents create by bulk insert

ninesunqianninesunqian · 2025-01-08 · 4 · #13

waiting

I create docs by auto-id. The ids in build request are zero Can you please provide a minimal reproducible example for this?

sanikolaevsanikolaev · 2024-12-23

Why not use database/sql to implement the sdk

Why not use database/sql to implement the sdk In this way, many things like sqlx can be used

fucktxfucktx · 2024-12-12 · 1 · #11

How to get id of new documents create by bulk insert

ninesunqianninesunqian · 2025-01-08 · 4 · #13

waiting

Since there's no reproducible case, we are closing this issue. Feel free to reopen in case you can provide more details on how to reproduce the issue.

sanikolaevsanikolaev · 2025-01-08

Whether to support go native SQL driver database/sql or gorm

Whether to support go native SQL driver database/sql or gorm

medivh666medivh666 · 2025-02-14 · 1 · #16

waiting

Why the id in ApiPartialReplaceRequest is float32, not int64 ?

ninesunqianninesunqian · 2025-01-08 · 3 · #10

This is a bug in the client which we're going to fix in the near future.

Nick-S-2018Nick-S-2018 · 2024-12-05

How to get id of new documents create by bulk insert

Hello, From this page I can't find how to get the id of new documents create by bulk or single insert https://manual.manticoresearch.com/Data_creation_and_modification/Adding_documents_to_a_table/Adding_documents_to_a_real-time_table#Auto-schema Should I …

ninesunqianninesunqian · 2025-01-08 · 4 · #13

waiting

Why the id in ApiPartialReplaceRequest is float32, not int64 ?

ninesunqianninesunqian · 2025-01-08 · 3 · #10

OK, Thanks very much. By the way, the way PartialReplace adding id and indexName is also different from other api. Can this be fixed as well?| For example: func (m *McsIndex) Insert(id int64, idea string, ts int64) error { indexDoc := map[string]interface …

ninesunqianninesunqian · 2024-12-05

Why the id in ApiPartialReplaceRequest is float32, not int64 ?

type ApiPartialReplaceRequest struct { ctx context.Context ApiService *IndexAPIService index string id float32 replaceDocumentRequest *ReplaceDocumentRequest } in api_index.go

ninesunqianninesunqian · 2025-01-08 · 3 · #10

Why the id in ApiPartialReplaceRequest is float32, not int64 ?

ninesunqianninesunqian · 2025-01-08 · 3 · #10

Handling id format is fixed in https://github.com/manticoresoftware/manticoresearch-go/commit/c2fb2fd00d8a53203eb015d1439d0ef91634d4d9 As for the issue about different method signature used for PartialReplace, this is caused by the different syntax of the …

Nick-S-2018Nick-S-2018 · 2025-01-08

Facet over histogram

openapi.Aggregation does not have facility to do faceting over histogram, as is shown in docs. Is there another way to produce aggregated results? Using latest dev branch and go 1.23.4

arrayindex-devarrayindex-dev · 2024-12-19 · 1 · #12

Why not use database/sql to implement the sdk

fucktxfucktx · 2024-12-12 · 1 · #11

You can connect to Manticore via the mysql protocol, so if you use database/sql and one of the mysql drivers, chances are it will work.

sanikolaevsanikolaev · 2024-12-12

# command-line-arguments .\main.go:20:90: syntax error: unexpected newline in composite literal; possibly missing comma or }

command-line-arguments .\main.go:20:90: syntax error: unexpected newline in composite literal; possibly missing comma or } The test case you provided has a missing comma at the end of the code snippet below: docs := []string{ "{"insert": {"index" : "test …

xue-ding-exue-ding-e · 2024-03-11 · 1 · #5

bug

Whether to support go native SQL driver database/sql or gorm

medivh666medivh666 · 2025-02-14 · 1 · #16

waiting

Sorry I don't understand the question.

sanikolaevsanikolaev · 2025-02-14

Fix the bug in the test case reported in the README

(specific informa…tion has been submitted in the issue)

xue-ding-exue-ding-e · 2024-03-12 · 1 · #6

Random EOFs

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

The issue seems to have to do with the specifics of the Go net/http package. We need to investigate it more thoroughly to understand what can be done here. As a workaround, I'd recommend to use a delay inside your loop if that does not affect the …

Nick-S-2018Nick-S-2018 · 2025-02-12

1👍1

Generate Go client

sanikolaevsanikolaev · 2024-02-12 · 2 · #4

est::size_L

Random EOFs

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

As a workaround, I'd recommend to use a delay inside your loop if that does not affect the performance of your application too much. It worked fine with 1 millisecond delay in our tests. I tried before with 100 msec delay, It worked. Thanks. Another …

AlexanderMatveevAlexanderMatveev · 2025-02-12

Increase remote invocation

This facilitates debugging and deployment (e.g., in Docker where it may not be in the same network segment, or on physical machines not on the same device). package openapi var defaultIP = "" func SetDefaultIP(IP string) { defaultIP = IP } func …

xue-ding-exue-ding-e · 2024-04-24 · 1 · #7

Random EOFs

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

@Nick-S-2018 Please find a better way to handle this. Adding a delay after each request is not a good practice.

sanikolaevsanikolaev · 2025-02-14

Make a specification

We need to make a specification for porting github.com/manticoresoftware/manticoresearch-php/ to Golang

manticoresearchmanticoresearch · 2024-01-09 · 2 · #1

Random EOFs

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

@Nick-S-2018 as discussed, pls prepare an MRE based on: pure go Manticore instance queries against Manticore

sanikolaevsanikolaev · 2025-02-19

Random EOFs

AlexanderMatveevAlexanderMatveev · 2025-02-19 · 5 · #15

bug

Just got same error using 1 ms delay in dockered manticoresearch: ... ERROR search err="Post "http://search:9308/sql?raw_response=true": read tcp 172.16.22.4:54194->172.16.22.3:9308: read: connection reset by peer" Increased cooldown to 100 msec =(

AlexanderMatveevAlexanderMatveev · 2025-02-19

`go get` fails for v6.0.0 due to module path version mismatch

yokowuyokowu · 2025-02-07 · 1 · #14

We've fixed documentation. It should read v1.6.0

Nick-S-2018Nick-S-2018 · 2025-02-07

Facet over histogram

arrayindex-devarrayindex-dev · 2024-12-19 · 1 · #12

@arrayindex-dev I believe only using the sql method - https://github.com/manticoresoftware/manticoresearch-go/blob/dev/docs/UtilsAPI.md#sql We'll see what we can do to support it natively in the client.

sanikolaevsanikolaev · 2024-12-19

fixbug:SearchRequest.Source field has wrong json tag

fpagyufpagyu · 2024-10-28 · 3 · #8

Thanks for the PR @fpagyu @Nick-S-2018 pls review.

sanikolaevsanikolaev · 2024-09-19

fixbug:SearchRequest.Source field has wrong json tag

fpagyufpagyu · 2024-10-28 · 3 · #8

@fpagyu Thank you for your PR. Now we're going to publish a major update for the client so we will include the fix for this issue as its part.

Nick-S-2018Nick-S-2018 · 2024-10-10