8000 Document a process for boosting pages in Algolia Docsearch by DanRoscigno · Pull Request #11111 · facebook/docusaurus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Document a process for boosting pages in Algolia Docsearch #11111

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DanRoscigno
Copy link
Contributor
@DanRoscigno DanRoscigno commented Apr 17, 2025

There are several steps to boosting pages in Docsearch with metadata added to Markdown/MDX pages. This guide covers the steps.

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

No bug, but this is (to me) a complicated workflow. This combines the existing information on metadata, Cheerio, and Algolia Crawler configuration in one place.

Test Plan

There are no code changes, so no unit tests. There is a section in the doc for the reader to test their changes.

Test links

Related links:

Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/

Related issues/PRs

Signed-off-by: DanRoscigno <dan@roscigno.com>
Signed-off-by: DanRoscigno <dan@roscigno.com>
Signed-off-by: DanRoscigno <dan@roscigno.com>
Signed-off-by: DanRoscigno <dan@roscigno.com>
Signed-off-by: DanRoscigno <dan@roscigno.com>
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 17, 2025
Copy link
netlify bot commented Apr 17, 2025

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit a39796a
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/6800f3fca4e60000088d1e1f
😎 Deploy Preview https://deploy-preview-11111--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🔴 48 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🔴 49 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 73 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 62 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🔴 45 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 61 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 71 🟢 100 🟢 100 🟠 86 Report

@DanRoscigno
Copy link
Contributor Author

I do not know how to fix the Lint and AutoFix failures.

@slorber
Copy link
Collaborator
slorber commented Apr 17, 2025

Hi @DanRoscigno and thanks for the valuable information. I wasn't aware of this Algolia technique and will probably use it on my own sites in the future, and consider implementing first-class features so that users can boost ranking of specific docs versions or plugins.

However, I believe this information doesn't really belong on our website. Most of this information is framework-agnostic, and valuable to other Algolia/DocSearch users.

The only thing related to Docusaurus is how to declare page metadata such as:

<head>
  <meta name="pageBoost" content="100"/>
</head>

Also, Algolia is one search solution among many. We use it historically on Docusaurus, but I don't think it's fair for other solutions to bias too much against it, and write advanced guides.


The rest of this docs is not related to Docusaurus. We can't document everything DocSearch has to offer in our own docs.

I think it would be more valuable if the DocSearch team added this to their docs. They already document it here, but maybe not enough in-depth in your opinion?
https://docsearch.algolia.com/docs/record-extractor/#boost-search-results-with-pagerank

Maybe including some framework-specific guides. And using a metadata by convention across all default framework configs could be a nice idea so that it's simpler to implement for users?

What do you think @shortcuts @millotp @randombeeper ?

@@ -128,6 +128,7 @@ const sidebars: SidebarsConfig = {
'advanced/routing',
'advanced/ssg',
'advanced/client',
'advanced/boosting',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very search/Algolia-specific, and doesn't really belong here.

At best, I'd prefer if we only add a little mention on this page: https://docusaurus.io/docs/search#using-algolia-docsearch

Preferably, it should be a very small section about Algolia boosting, linking to an external documentation written and kept up-to-date by the Algolia team itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I will talk to the Algolia folks. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0