-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Search: cross-site search federation #5230
Comments
Thanks for suggesting! We'll be considering this feature request for the next iteration of search that we'll start working on later this year. This will make search more flexible and adaptable to various use cases like yours. |
Is this still up for consideration? |
Yes, this will be part of the new search implementation that we're currently working on. We just need to first finish the work on the 9.2 release, then we'll continue working on the new search. It will offer a federated mode where you can define multiple sites to pull search indexes from that will be merged appropriately. |
Great, looking forward to seeing it in our insider's version 👏 |
Please see the announcement in #6307. |
It would be great if you could use relative urls. as the base domain will differ depending on our environment. |
|
@squidfunk When can we expect federated search functionality will be released ? . I see everyone are eagerly waiting. As this function makes searching simpler. |
Please read our latest blog post, where we explain why things are taking longer than expected. Also, please refer to #6307 for updates, which is where we will announce then availability. |
Context
I have multiple mkdocs-backed doc sections that compose the Dokku project:
All of these have their own release cycle and thus are in different repositories, but more or less roll up to the same "dokku/docs" repo for their generated contents. This allows me to have quicker CI runs for each while still keeping on the same domain.
One thing that isn't great is that search results are scoped to just the section a user happens to be on. It is all effectively one "site" but because of how the sites are generated, we don't show the related documentation from each sub-site.
Description
What I would like to do is be able to configure mkdocs such that it can either:
If several indexes are merged, a user should be able to specify some config:
This would then appear in search results in a more unified way, with tabs for each index.
Related links
I looked to see if this was in the discussion board and docs, and that doesn't seem to be the case.
Use Cases
Maybe a user could configure other search indexes to load like so:
When building search results, the results from these additional indexes would have their
site_index
injected and then that would be used when templating out results to provide a link to the docs. Search would maybe have to be refactored a bit to run against several indexes at once (not sure how that would work, was a bit hard to grok how search is launched from a quick browse of the source).From a developer's perspective, the yaml config is all they would need to completely spider a site (or multiple sites) and have their results show up. For users, this unified search would provide a much better experience when browsing multiple distinct doc results.
Visuals
Below is something I'm hoping to approximate, from the Nomad documentation.
Before submitting
The text was updated successfully, but these errors were encountered: