-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-37442: show vector search idx creation #883
DOCSP-37442: show vector search idx creation #883
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm + a fix + a suggestion
When connecting to {+mdb-server+} v6.0.11 and later v6 versions, or | ||
v7.0.2 and later v7 versions, you can use the driver to create an Atlas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
type: "vectorSearch", | ||
definition: { | ||
fields: [{ | ||
type: "vector", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this is correct because Henry provided this code in the ticket description - but can we confirm that type: 'vector'
is correct here? It's strange that this is an example to create a type: 'vectorSearch'
index but we also specify type: 'vector'
in the description body.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the procedure here under the Atlas CLI tab, it looks like this is the correct format for the JSON index model
{
"collectionName": "<name-of-collection>",
"database": "<name-of-database>",
"type": "vectorSearch",
"name": "<index-name>",
"fields":[
{
"type": "vector",
"path": <field-to-index>,
"numDimensions": <number-of-dimensions>,
"similarity": "euclidean | cosine | dotProduct"
},
{
"type": "filter",
"path": "<field-to-index>"
},
...
]
}
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
* DOCSP-37442: show vs index creation * update * staging * fixes * MW PR fixes 1 (cherry picked from commit 4cf3cda)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-37442
Staging - https://preview-mongodbrustagir.gatsbyjs.io/node/DOCSP-37442-show-vector-idx-creation/fundamentals/indexes/#create-a-search-index
log
Self-Review Checklist