An aggregation query like
[{$match: {a: 1}}, {$project: {a: {$meta: "textScore"}}]
fails with the error that "query requires text score metadata, but it is not available". That same type of validation occurs for "geoNearDistance" and "geoNearPoint" as well.
However, if you change the pipeline to include a mongot stage like
[{$search: {/*any $search predicate*/}}, {$project: {a: {$meta: "textScore"}}]
that validation is skipped.
- is depended on by
-
SERVER-100948 Re-enable scoreDetails "value" field
-
- Closed
-
- is related to
-
SERVER-100981 Temporarily disable score_fusion_failure_assertions.js from sharded passthrough
-
- Closed
-
- related to
-
SERVER-101100 Implement getDependencies() for Mongot Pipelines
-
- Backlog
-
-
SERVER-100045 Add property-based test for metadata field dependency validation
-
- Closed
-