fix: fix regressed search index creation eval cases CLOUDP-424118#1360
Open
JimmyChoiMDB wants to merge 2 commits into
Open
fix: fix regressed search index creation eval cases CLOUDP-424118#1360JimmyChoiMDB wants to merge 2 commits into
JimmyChoiMDB wants to merge 2 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR expands the create-index tool’s Atlas Search index definition schema to cover additional Atlas Search options (custom analyzers, synonyms, stored source, and type sets) and adds accuracy-test coverage for these newly supported index shapes.
Changes:
- Extend the Atlas Search index Zod schema to support
analyzers,synonyms,storedSource,typeSets, richermappings.dynamic, and multi-definition field mappings. - Include the new Atlas Search definition fields in the request payload sent to
createSearchIndexes. - Add accuracy test cases for custom analyzers, synonyms mappings, facet fields, multi-type field definitions, stored source, and type-set-based dynamic mapping.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
src/tools/mongodb/create/createIndex.ts |
Expands the Atlas Search index definition schema and wires new definition fields into index creation. |
tests/accuracy/createIndex.test.ts |
Adds accuracy scenarios validating tool-call construction for the newly supported Atlas Search index options. |
JimmyChoiMDB
marked this pull request as ready for review
July 15, 2026 22:27
JimmyChoiMDB
requested review from
ciprian-tibulca,
himanshusinghs and
nirinchev
and removed request for
a team
July 15, 2026 22:27
Contributor
Braintrust eval CI reportCurrent run
Accuracy timeline (historical + this run)---
config:
xyChart:
showDataLabel: true
showDataLabelOutsideBar: true
themeVariables:
xyChart:
titleColor: 'orange'
---
xychart
title "accuracy"
x-axis ["2026-07-09 15:42", "2026-07-12 14:50", "2026-07-12 18:03", "2026-07-13 10:40", "2026-07-13 15:31", "2026-07-13 15:48", "2026-07-14 08:59", "2026-07-14 09:31", "2026-07-14 11:21", "2026-07-15 17:06", "This run"]
y-axis "Accuracy (%)" 0 --> 100
bar [48.5, 53.4, 49.4, 49.7, 51.6, 50.6, 49, 52.8, 47, 77.8, 90.3]
line [48.5, 53.4, 49.4, 49.7, 51.6, 50.6, 49, 52.8, 47, 77.8, 90.3]
|
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Expand search index creation schema to include fields that were not accounted for such as analyzers, storedSource etc
Checklist