Skip to content

Move $search and $vectorSearch to beginning of pipelines - #2879

Merged
bagerard merged 1 commit into
MongoEngine:masterfrom
mcsimps2:search_first_in_pipeline
Aug 23, 2026
Merged

Move $search and $vectorSearch to beginning of pipelines#2879
bagerard merged 1 commit into
MongoEngine:masterfrom
mcsimps2:search_first_in_pipeline

Conversation

@mcsimps2

@mcsimps2 mcsimps2 commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Resolves #2878

The $search and $vectorSearch aggregation pipeline stages are moved to the front of the pipeline, similar to $geoNear and $collStats.

@mcsimps2
mcsimps2 force-pushed the search_first_in_pipeline branch 3 times, most recently from 5b9a1d4 to 75c5e4d Compare April 7, 2025 19:49
@mcsimps2
mcsimps2 force-pushed the search_first_in_pipeline branch from 75c5e4d to f8d43c0 Compare April 10, 2025 20:02
@bagerard
bagerard merged commit 892f798 into MongoEngine:master Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants