# MongoDB 8.0 index filters deprecated query settings setQuerySettings planCacheSetFilter

Status: search-observed
Product: MongoDB 8.0
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/mongodb-8-0-index-filters-deprecated-query-settings-setquerysettings-plancachesetfilter
Machine JSON: https://gitdocs.org/api/fixes/mongodb-8-0-index-filters-deprecated-query-settings-setquerysettings-plancachesetfilter.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Monitoring or admin code references server-side metrics/commands that are not defined in the repository.

## Fix

```
Verifier checks the current metric/command and equivalent alert/administration behavior. Check durability, topology-safe routing, and monitoring meaning.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- MongoDB 8.0 index filters deprecated query settings setQuerySettings planCacheSetFilter
- site:mongodb.com/docs/manual MongoDB 8.0 index filters deprecated query settings
- MongoDB index filters deprecated in favor of query settings
- mongodb planCacheSetFilter deprecated
- https://www.mongodb.com/docs/manual/reference/command/planCacheSetFilter/
- 'Starting in MongoDB 8.0' in https://www.mongodb.com/docs/manual/reference/command/planCacheSetFilter/

## Sources

- MongoDB 8.0 compatibility changes: https://www.mongodb.com/docs/manual/release-notes/8.0-compatibility/
- Official reference opened by Codex: https://www.mongodb.com/docs/manual/reference/command/planCacheSetFilter/
