From caa20a2015d17ba567693a6e69db0ae67d346010 Mon Sep 17 00:00:00 2001 From: Strift Date: Sat, 8 Feb 2025 16:25:53 +0800 Subject: [PATCH] Remove vector store type --- features.go | 5 ----- features_test.go | 2 -- types.go | 2 -- 3 files changed, 9 deletions(-) diff --git a/features.go b/features.go index c3b538ff..90e51a56 100644 --- a/features.go +++ b/features.go @@ -15,11 +15,6 @@ func (m *meilisearch) ExperimentalFeatures() *ExperimentalFeatures { return &ExperimentalFeatures{client: m.client} } -func (ef *ExperimentalFeatures) SetVectorStore(vectorStore bool) *ExperimentalFeatures { - ef.VectorStore = &vectorStore - return ef -} - func (ef *ExperimentalFeatures) SetLogsRoute(logsRoute bool) *ExperimentalFeatures { ef.LogsRoute = &logsRoute return ef diff --git a/features_test.go b/features_test.go index 24c01dee..e5a2a32d 100644 --- a/features_test.go +++ b/features_test.go @@ -60,14 +60,12 @@ func TestUpdate_ExperimentalFeatures(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ef := tt.client.ExperimentalFeatures() - ef.SetVectorStore(true) ef.SetLogsRoute(true) ef.SetMetrics(true) ef.SetEditDocumentsByFunction(true) ef.SetContainsFilter(true) gotResp, err := ef.Update() require.NoError(t, err) - require.Equal(t, true, gotResp.VectorStore, "ExperimentalFeatures.Update() should return vectorStore as true") require.Equal(t, true, gotResp.LogsRoute, "ExperimentalFeatures.Update() should return logsRoute as true") require.Equal(t, true, gotResp.Metrics, "ExperimentalFeatures.Update() should return metrics as true") require.Equal(t, true, gotResp.EditDocumentsByFunction, "ExperimentalFeatures.Update() should return editDocumentsByFunction as true") diff --git a/types.go b/types.go index 0f39d3d0..fd52c4e2 100644 --- a/types.go +++ b/types.go @@ -569,7 +569,6 @@ type UpdateDocumentByFunctionRequest struct { // ExperimentalFeaturesResult represents the experimental features result from the API. type ExperimentalFeaturesBase struct { - VectorStore *bool `json:"vectorStore,omitempty"` LogsRoute *bool `json:"logsRoute,omitempty"` Metrics *bool `json:"metrics,omitempty"` EditDocumentsByFunction *bool `json:"editDocumentsByFunction,omitempty"` @@ -577,7 +576,6 @@ type ExperimentalFeaturesBase struct { } type ExperimentalFeaturesResult struct { - VectorStore bool `json:"vectorStore"` LogsRoute bool `json:"logsRoute"` Metrics bool `json:"metrics"` EditDocumentsByFunction bool `json:"editDocumentsByFunction"`