Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$text and $search pipeline does not work on multitenant domain #184

Open
rkimaoui opened this issue Jan 6, 2021 · 0 comments
Open

$text and $search pipeline does not work on multitenant domain #184

rkimaoui opened this issue Jan 6, 2021 · 0 comments

Comments

@rkimaoui
Copy link

rkimaoui commented Jan 6, 2021

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 a filter on current tenantId is always inserted as the first stage in the pipeline.

Thanks,

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

No branches or pull requests

1 participant