diff --git a/README.md b/README.md index af4540dc..adf94ecd 100644 --- a/README.md +++ b/README.md @@ -238,6 +238,8 @@ searchRes, err := index.Search("wonder", This package guarantees compatibility with [version v1.x of Meilisearch](https://github.com/meilisearch/meilisearch/releases/latest), but some features may not be present. Please check the [issues](https://github.com/meilisearch/meilisearch-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3Aenhancement) for more info. +⚠️ This package is not compatible with the [`vectoreStore` experimental feature](https://www.meilisearch.com/docs/learn/experimental/vector_search) of Meilisearch v1.6.0 and later. More information on this [issue](https://github.com/meilisearch/meilisearch-go/issues/504). + ## 💡 Learn more The following sections in our main documentation website may interest you: diff --git a/index_search_test.go b/index_search_test.go index 9c5c8177..49888745 100644 --- a/index_search_test.go +++ b/index_search_test.go @@ -1600,38 +1600,39 @@ func TestIndex_SearchWithShowRankingScore(t *testing.T) { require.NotNil(t, got.Hits[0].(map[string]interface{})["_rankingScore"]) } -func TestIndex_SearchWithVectorStore(t *testing.T) { - type args struct { - UID string - PrimaryKey string - client *Client - query string - request SearchRequest - } - testArg := args{ - UID: "indexUID", - client: defaultClient, - query: "Pride and Prejudice", - request: SearchRequest{ - Vector: []float64{0.1, 0.2, 0.3}, - }, - } +// Commented because of https://github.com/meilisearch/meilisearch-go/issues/504 +// func TestIndex_SearchWithVectorStore(t *testing.T) { +// type args struct { +// UID string +// PrimaryKey string +// client *Client +// query string +// request SearchRequest +// } +// testArg := args{ +// UID: "indexUID", +// client: defaultClient, +// query: "Pride and Prejudice", +// request: SearchRequest{ +// Vector: []float64{0.1, 0.2, 0.3}, +// }, +// } - i, err := SetUpIndexWithVector(testArg.UID) - if err != nil { - t.Fatal(err) - } +// i, err := SetUpIndexWithVector(testArg.UID) +// if err != nil { +// t.Fatal(err) +// } - c := testArg.client - t.Cleanup(cleanup(c)) +// c := testArg.client +// t.Cleanup(cleanup(c)) - got, err := i.Search(testArg.query, &testArg.request) - require.NoError(t, err) - require.NotNil(t, got.Hits[0].(map[string]interface{})["_vectors"]) +// got, err := i.Search(testArg.query, &testArg.request) +// require.NoError(t, err) +// require.NotNil(t, got.Hits[0].(map[string]interface{})["_vectors"]) - vectorsRes := got.Hits[0].(map[string]interface{})["_vectors"].([]interface{}) +// vectorsRes := got.Hits[0].(map[string]interface{})["_vectors"].([]interface{}) - for i := range vectorsRes { - require.Equal(t, testArg.request.Vector[i], vectorsRes[i]) - } -} +// for i := range vectorsRes { +// require.Equal(t, testArg.request.Vector[i], vectorsRes[i]) +// } +// }