Skip to content

$search must appear as the first stage in an aggregation pipeline #2878

@mcsimps2

Description

@mcsimps2

For users using the $search or $vectorSearch operator in aggregation pipelines for MongoDB Atlas, it must be done in the first stage of the pipeline. This is similar to how $geoNear and $collStats work, which was resolved in #2493.

See the MongoDB docs on $search here.

See the MongoDB docs on $vectorSearch here.

Relevant: #2667, #2785

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions