Closed Krinkle closed 11 months ago
I've drafted WordPress integration at https://github.com/jquery/jquery-wp-content/tree/draft-typesense.
Visually, the input field is slightly taller, and I also made it a bit wider to make up for the increase spacing so preserve a more balanced feel (I think?).
For jQuery Core, the main difference is that we no longer duplicate results from the same page (which is an intentional configuration difference), so that a search like "ajax" won't show 5/5 results of the same page but rather give you 5 different pages to choose from.
For jQuery UI, the results are more or less the same. The improvements I made is that it now follows local brand colors (only requires 2 CSS variables!), and the prevalent link
words and QuickNav Examples
words are gone from all results by adding .icon-link.toc-link
and #quick-nav header h2
to the scraper's selectors_exclude
config.
There's also various small match and ranking improvements based on special characters. And of course most significantly, the fact that TypeSense is freely-licensed open source software, the whole minibar widget is only 2kB (compared to ~100 kB), and is served without privacy-leaking third-party requests.
Before | After |
---|---|
Background as documented previously:
Since April 2023 we have an instance of Typesense running in the new infra, provisioned through this repostory (https://github.com/jquery/infrastructure-puppet/commit/558de966f806c18203bfe739778fc895bcb44bf8). I also developed a 2kB minimalistic HTML-first client and user interface for it at https://github.com/jquery/typesense-minibar and integrated it with our Jekyll theme at https://github.com/qunitjs/jekyll-theme-amethyst/. This has been live on https://qunitjs.com/ for the past few months.
Next, we need to migrate the remaining doc sites which are still using the (now stale and deprecated) Algolia DocSearch indexes: