Skip to content

Commit 03b3069

Browse files
author
Ciprian Tibulca
authored
CLOUDP-204057: support for vectorSearch (#2442)
1 parent 34366cc commit 03b3069

18 files changed

+75
-30
lines changed

docs/atlascli/command/atlas-clusters-search-indexes-describe.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ If the command succeeds, the CLI returns output similar to the following sample.
9393

9494
.. code-block::
9595

96-
ID NAME DATABASE COLLECTION
97-
<IndexID> <Name> <Database> <CollectionName>
96+
ID NAME DATABASE COLLECTION TYPE
97+
<IndexID> <Name> <Database> <CollectionName> <Type>
9898

9999

100100
Examples

docs/atlascli/command/atlas-clusters-search-indexes-list.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ Inherited Options
7878
- false
7979
- Name of the profile to use from your configuration file. To learn about profiles for the Atlas CLI, see https://dochub.mongodb.org/core/atlas-cli-save-connection-settings.
8080

81+
Output
82+
------
83+
84+
If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.
85+
86+
.. code-block::
87+
88+
ID NAME DATABASE COLLECTION TYPE
89+
<IndexID> <Name> <Database> <CollectionName> <Type>
90+
91+
8192
Examples
8293
--------
8394

docs/atlascli/command/atlas-deployments-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ If the command succeeds, the CLI returns output similar to the following sample.
6767

6868
.. code-block::
6969

70-
NAME TYPE MDB VER STATE
71-
{{range .><Name> <Type> <MongoDBVersion> <StateName>
70+
NAME TYPE MDB VER STATE
71+
<Name> <Type> <MongoDBVersion> <StateName>
7272

7373

docs/atlascli/command/atlas-deployments-search-indexes-describe.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If the command succeeds, the CLI returns output similar to the following sample.
9595

9696
.. code-block::
9797

98-
ID NAME DATABASE COLLECTION STATUS
99-
<IndexID> <Name> <Database> <CollectionName> <Status>
98+
ID NAME DATABASE COLLECTION STATUS TYPE
99+
<IndexID> <Name> <Database> <CollectionName> <Status> <Type>
100100

101101

docs/atlascli/command/atlas-deployments-search-indexes-list.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If the command succeeds, the CLI returns output similar to the following sample.
8787

8888
.. code-block::
8989

90-
ID NAME DATABASE COLLECTION STATUS{{range .>
91-
<IndexID> <Name> <Database> <CollectionName> <Status>
90+
ID NAME DATABASE COLLECTION STATUS TYPE
91+
<IndexID> <Name> <Database> <CollectionName> <Status> <Type>
9292

9393

docs/mongocli/command/mongocli-atlas-clusters-search-indexes-describe.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ If the command succeeds, the CLI returns output similar to the following sample.
9393

9494
.. code-block::
9595

96-
ID NAME DATABASE COLLECTION
97-
<IndexID> <Name> <Database> <CollectionName>
96+
ID NAME DATABASE COLLECTION TYPE
97+
<IndexID> <Name> <Database> <CollectionName> <Type>
9898

9999

100100
Examples

docs/mongocli/command/mongocli-atlas-clusters-search-indexes-list.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,17 @@ Inherited Options
7878
- false
7979
- Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
8080

81+
Output
82+
------
83+
84+
If the command succeeds, the CLI returns output similar to the following sample. Values in brackets represent your values.
85+
86+
.. code-block::
87+
88+
ID NAME DATABASE COLLECTION TYPE
89+
<IndexID> <Name> <Database> <CollectionName> <Type>
90+
91+
8192
Examples
8293
--------
8394

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require (
3232
github.com/klauspost/compress v1.17.2
3333
github.com/mattn/go-isatty v0.0.20
3434
github.com/mongodb-forks/digest v1.0.5
35-
github.com/mongodb-labs/cobra2snooty v0.16.0
35+
github.com/mongodb-labs/cobra2snooty v0.17.0
3636
github.com/mongodb/mongodb-atlas-kubernetes v1.9.0
3737
github.com/pelletier/go-toml v1.9.5
3838
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
420420
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
421421
github.com/mongodb-forks/digest v1.0.5 h1:EJu3wtLZcA0HCvsZpX5yuD193/sW9tHiNvrEM5apXMk=
422422
github.com/mongodb-forks/digest v1.0.5/go.mod h1:rb+EX8zotClD5Dj4NdgxnJXG9nwrlx3NWKJ8xttz1Dg=
423-
github.com/mongodb-labs/cobra2snooty v0.16.0 h1:+q89WQ6KCBWKaxKoXnVmgpPk7DsIJv2LTcvMqCSgOD4=
424-
github.com/mongodb-labs/cobra2snooty v0.16.0/go.mod h1:eZYlGRCR9pVAqS6Wwz2eVQ9i3Dy4EtcG8jVkcfFWS7Y=
423+
github.com/mongodb-labs/cobra2snooty v0.17.0 h1:Os4RpsIHViw2fT6Wk5d5cG/rItRS0c8Za8sKKhw3oc8=
424+
github.com/mongodb-labs/cobra2snooty v0.17.0/go.mod h1:TgFBJczSy1fdW6HY5ZGQfC9EOlhrD1ZJ9hWRldG5gTI=
425425
github.com/mongodb/mongodb-atlas-kubernetes v1.9.0 h1:G0W00WwOMf00slHjQG5I6JhQPzN2zAjee1rQJxA9t+w=
426426
github.com/mongodb/mongodb-atlas-kubernetes v1.9.0/go.mod h1:S7JpgyRq6Asp/PBNFWppwUTwao7EIFgFau3ltpt3rpA=
427427
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=

internal/cli/atlas/deployments/search/indexes/create_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"github.com/mongodb/mongodb-atlas-cli/internal/flag"
3131
"github.com/mongodb/mongodb-atlas-cli/internal/mocks"
3232
"github.com/mongodb/mongodb-atlas-cli/internal/mongodbclient"
33+
"github.com/mongodb/mongodb-atlas-cli/internal/pointer"
3334
"github.com/mongodb/mongodb-atlas-cli/internal/test"
3435
"github.com/stretchr/testify/assert"
3536
atlasv2 "go.mongodb.org/atlas-sdk/v20231115002/admin"
@@ -126,6 +127,7 @@ func TestCreate_RunLocal(t *testing.T) {
126127
},
127128
Name: opts.Name,
128129
SearchAnalyzer: &opts.SearchAnalyzer,
130+
Type: pointer.Get(search.DefaultType),
129131
}
130132

131133
indexWithID := &atlasv2.ClusterSearchIndex{
@@ -139,6 +141,7 @@ func TestCreate_RunLocal(t *testing.T) {
139141
Name: opts.Name,
140142
SearchAnalyzer: &opts.SearchAnalyzer,
141143
IndexID: &indexID,
144+
Type: pointer.Get(search.DefaultType),
142145
}
143146

144147
mockDB.
@@ -308,6 +311,7 @@ func TestCreate_RunAtlas(t *testing.T) {
308311
},
309312
Name: opts.Name,
310313
SearchAnalyzer: &opts.SearchAnalyzer,
314+
Type: pointer.Get(search.DefaultType),
311315
}
312316

313317
indexWithID := &atlasv2.ClusterSearchIndex{

0 commit comments

Comments
 (0)