You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I debug the code, I see that in opensearchtransport.setReqURL(...) the indices are added again to the request URL, so that the request URL will become like: http://myserver:9200/my-indices-*/my-indices-*/_search
How can one reproduce the bug?
A search request like the one above should give the same result.
I looked at the client initialization, and see that they added the index search as part of the addresses, so this is clearly a fault on my side. Closing the case.
What is the bug?
Using opensearch-go v2.3.0 I create a query like this:
`search := opensearchapi.SearchRequest{
Body: content,
Index: []string{"my-indices-*"},
}
searchResponse, err := search.Do(context.Background(), client)
`
When I debug the code, I see that in opensearchtransport.setReqURL(...) the indices are added again to the request URL, so that the request URL will become like: http://myserver:9200/my-indices-*/my-indices-*/_search
How can one reproduce the bug?
A search request like the one above should give the same result.
What is the expected behavior?
The request URL should be: http://myserver:9200/my-indices-*/_search
What is your host/environment?
Windows 10 22H2
Golang 1.22.4
Do you have any screenshots?
Not at this point.
Do you have any additional context?
No.
The text was updated successfully, but these errors were encountered: