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

Fulltext search service / solr in multi tenant environment #585

Open
danceb opened this issue Oct 15, 2024 · 0 comments
Open

Fulltext search service / solr in multi tenant environment #585

danceb opened this issue Oct 15, 2024 · 0 comments

Comments

@danceb
Copy link

danceb commented Oct 15, 2024

I did not get the solr search to work within a multi tenant environment.

I discovered, that part of the sending solr query is: &fq=tenant:default.
With another tenant this is &fq=tenant:anothertenant accordingly.

Within the example config [1] of the SELECT statements for the search facets there is set a tenant column, which is directly defined as: 'default' AS tenant,.

So I think the issue lays within this. As default is set as column tenant within the search facet, the solr query with &fq=tenant:anothertenant does not match this, correct?

I have tried to set this as an array ["default","anothertenant"] like it is done in other columns with
array_to_json(array_append(ARRAY['default'::text], 'anothertenant'::text))::text AS tenant, but this didn't solve the issue.

So do you have any hints for that?

Thanks!

[1] https://qwc-services.github.io/master/topics/Search/#fulltext-search-with-solr-backend

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