Search index filtering

but $search must to be the first in the pipeline, no? because im getting when doing otherwise

ERROR	MongoServerError: $_internalSearchMongotRemote is only valid as the first stage in a pipeline