Closed beckerjohannes closed 10 months ago
If the code is just a very simple change and is coded in such a way that it works on both simple sites (the existing implementation) and multi-version sites (as in your use case), then sure a PR for such a feature is likely to be within scope and get merged.
Prerequisites
Proposal
Extend the configuration parameters of
docsearch
to support facets.Motivation and context
Docsearch has something called 'facets' where you can restrict the results based on record attributes in the indexed results.
E.g. if the crawler extracts version information from your pages you can restrict search results to
latest
. Seehttps://docsearch.algolia.com/docs/docsearch-v3/#filtering-your-search
In my case, the web page hosts the documentation for 5+ versions. So, searching for something brings often 5+ hits, all pointing to the same topic, in different versions.
If the feature will be accepted, I am happy to provide a PR.