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

Create cross-wiki search #1109

Open
jamesmontalvo3 opened this issue Jan 28, 2019 · 1 comment
Open

Create cross-wiki search #1109

jamesmontalvo3 opened this issue Jan 28, 2019 · 1 comment

Comments

@jamesmontalvo3
Copy link
Contributor

It's very easy to search across elasticsearch indices:

# List indices
curl localhost:9200/_cat/indices?v

# Search all indices
curl "localhost:9200/_all/_search/?q=Some%20search" | jq .

# Search multiple indices as once
curl "localhost:9200/wiki_bme*,wiki_hsg*/_search/?q=Test%20page" | jq .

To make a nice UI you'd have to determine what wikis a user had the read privilege on, and only search those indices. Additionally you could have different levels of allowed content to be displayed from wikis a user didn't have access to:

  1. Show all search info including snippets of text. This is the most permissive option. Users who clicked on such results still wouldn't be able to get to the page, though.
  2. Show page names without any of the content of the page
  3. Show something like "A page on the YXZ Wiki has relevant content"
  4. Don't show results
@revansx
Copy link
Contributor

revansx commented Jan 30, 2019

This is excellent news and great information. Thank you!

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

2 participants