Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions source/index-management/index-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,8 @@ from mistakenly specifying this option, drivers manually verify it is only sent

#### Changelog

- 2025-12-18: Search index tests only assert `latestDefinition.mappings.dynamic` values.

- 2025-09-09: Clarify that `rawData` is for internal use only.

- 2025-06-27: Added `rawData` option to CreateIndexOptions, DropIndexOptions and ListIndexesOptions.
Expand Down
12 changes: 6 additions & 6 deletions source/index-management/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ cluster for development.
- An index with the `name` of `test-search-index` is present and the index has a field `queryable` with a value of
`true`.

5. Assert that `index` has a property `latestDefinition` whose value is `{ 'mappings': { 'dynamic': false } }`
5. Assert that `index.latestDefinition.mappings.dynamic` has the value `false`.

#### Case 2: Driver can successfully create multiple indexes in batch

Expand Down Expand Up @@ -125,8 +125,8 @@ cluster for development.
- An index with the `name` of `test-search-index-2` is present and index has a field `queryable` with the value of
`true`. Store result in `index2`.

5. Assert that `index1` and `index2` have the property `latestDefinition` whose value is
`{ "mappings" : { "dynamic" : false } }`
5. Assert that `index1.latestDefinition.mappings.dynamic` and `index2.latestDefinition.mappings.dynamic` have the value
`false`.

#### Case 3: Driver can successfully drop search indexes

Expand Down Expand Up @@ -196,8 +196,8 @@ This test fails if it times out waiting for the deletion to succeed.
- An index with the `name` of `test-search-index` is present. This index is referred to as `index`.
- The index has a field `queryable` with a value of `true` and has a field `status` with the value of `READY`.

8. Assert that an index is present with the name `test-search-index` and the definition has a property
`latestDefinition` whose value is `{ 'mappings': { 'dynamic': true } }`.
8. Assert that an index is present with the name `test-search-index` and `index.latestDefinition.mappings.dynamic` has
the value `true`.

#### Case 5: `dropSearchIndex` suppresses namespace not found errors

Expand Down Expand Up @@ -230,7 +230,7 @@ This test fails if it times out waiting for the deletion to succeed.
- An index with the `name` of `test-search-index-case6` is present and the index has a field `queryable` with a value
of `true`.

6. Assert that `index` has a property `latestDefinition` whose value is `{ 'mappings': { 'dynamic': false } }`
6. Assert that `index.latestDefinition.mappings.dynamic` has the value `false`.

#### Case 7: Driver can successfully handle search index types when creating indexes

Expand Down
Loading