rkimaoui opened a new issue, #14383: URL: https://github.com/apache/grails-core/issues/14383
Hello, Mongodb documentation says: **$text:** `The $match stage that includes a $text must be the first stage in the pipeline.` **$search (Mongodb Atlas search):** `$search must be the first stage of any pipeline it appears in. ` When querying a multitenant domain, we get an error because in the [preparePipeline](https://github.com/grails/gorm-mongodb/blob/9bc5f32fc76073415af5852f8ecdf500e5d58221/grails-datastore-gorm-mongodb/src/main/groovy/org/grails/datastore/gorm/mongo/api/MongoStaticApi.groovy#L287) a filter on current tenantId is always inserted as the first stage in the pipeline. Thanks, -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
