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

limit search to results from current site_id only? #88

Open
benzkji opened this issue Jun 13, 2018 · 0 comments
Open

limit search to results from current site_id only? #88

benzkji opened this issue Jun 13, 2018 · 0 comments

Comments

@benzkji
Copy link

benzkji commented Jun 13, 2018

when running multiple sites in one django CMS instance, results are displayed from all sites. resulting in 404s for results from other sites. I can see there is already a site_id field on the search index, so this could be done in here https://github.com/aldryn/aldryn-search/blob/master/aldryn_search/views.py#L62 , probably without much hassle?

If wanted at all? One issue could be, if one has other indexes, without the site_id field.

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