Skip to content
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

Merged

Conversation

rustagir
Copy link
Collaborator

@rustagir rustagir commented Mar 13, 2024

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

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?

Copy link
Collaborator

@mongoKart mongoKart left a 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

source/fundamentals/indexes.txt Outdated Show resolved Hide resolved
source/fundamentals/indexes.txt Outdated Show resolved Hide resolved
Comment on lines +381 to +382
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
Copy link
Collaborator

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",

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.

Copy link
Collaborator Author

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>"
    },
    ...
  ]
}

@rustagir rustagir merged commit 4cf3cda into mongodb:master Mar 14, 2024
2 checks passed
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
rustagir added a commit that referenced this pull request Mar 14, 2024
* DOCSP-37442: show vs index creation

* update

* staging

* fixes

* MW PR fixes 1

(cherry picked from commit 4cf3cda)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants