-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
ALL
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.
- related to
-
SERVER-100045 Add property-based test for metadata field dependency validation
-
- In Code Review
-