-
Notifications
You must be signed in to change notification settings - Fork 34
DOCSP-41983: indexes landing pg #127
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-41983: indexes landing pg #127
Conversation
335066f
to
a2c7296
Compare
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 with one suggestion!
e66dbc3
to
b18b221
Compare
// start-search-update | ||
$result = $collection->updateSearchIndex( | ||
['name' => '<index name>'], | ||
['mappings' => ['dynamic' => true]], |
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.
You might be able to pull some inspiration from examples I wrote up in the Doctrine ODM project: doctrine/mongodb-odm@fed919f
In particular, there is some code in AbstractMappingDriverTestCase.php
that presents both dynamic and non-dynamic search index definitions. Those are expected values from parsing annotations and XML mappings, which are probably less helpful.
I think some of that content is also available via: https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/search-indexes.html
❌ Deploy Preview for docs-php-library failed. Why did it fail? →
|
@jmikola I can take those examples under consideration for the longer Atlas Search index focused guide that is planned: https://jira.mongodb.org/browse/DOCSP-41987 |
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-41983
Staging - https://preview-mongodbrustagir.gatsbyjs.io/php-library/DOCSP-41983-indexes-landing/indexes/
Self-Review Checklist