Hi @Kalinga_Raj
Great short anwser @amyjian!
As mention, the $search stage is performed by a different process, which indexes and processes search queries. These indexes are built asynchronously from the data on the mongod nodes. Because of this, $search queries bypass the typical replica set mechanisms.
The update data on search index is doing by read a change stream of the collection, as it mention on docs.
You can see the process on the following diagram, available [here].(https://www.mongodb.com/docs/atlas/atlas-search/about/deployment-options/)
3 Likes