HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.18k stars 2.9k forks source link

Facet Filtering for DOCSEARCH #3022

Closed beckerjohannes closed 10 months ago

beckerjohannes commented 10 months ago

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. See

https://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.

gcushen commented 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.