Added index type tests for text#252
Conversation
Signed-off-by: Victor [C] Tsang <vitsangp@amazon.com>
fanyangv
left a comment
There was a problem hiding this comment.
This PR covers BSON type validation and 3 error cases, but is missing success/behavior tests for text index creation. Consider adding (here or in follow-up):
- Compound text index creation succeeds ({"a": 1, "content": "text", "b": -1})
- Wildcard text index ({"$**": "text"}) creation succeeds
- Sparse behavior — documents without indexed field are excluded from $text results
- Collation restriction — text index on collection with non-simple collation requires {collation: {locale: "simple"}}
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (test-coverage, test-framework); effort from diff stats (180+1 LOC, 3 files); LLM: Adds new index type tests for text and migrates existing createIndexes tests to use the bson_type_validator framework, expanding test coverage within the compatibility tests component. If a label is wrong, remove it manually and ping |
|
Signed-off-by: Victor Tsang <vitsangp@amazon.com>
Signed-off-by: Victor Tsang <vitsangp@amazon.com>
This PR contains:
Ref: