Skip to content

Conversation

@SarahSoutoul
Copy link
Contributor

@SarahSoutoul SarahSoutoul commented Oct 16, 2025

🔎 Previews:

What does this solve?

Linear: https://linear.app/clerk/issue/DOCS-11038/increase-search-ranking-for-gettoken-js-version

The getToken() method from the JS SDK should be higher up in the search. This PR adds a search field in the frontmatter to achieve that.

What changed?

  • Added a search field with a rank and keywords

Note: This is not really testable apparently, so it might be a case of deploying it to prod and seeing how it works.

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • All existing checks pass

@vercel
Copy link

vercel bot commented Oct 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
clerk-docs Ready Ready Preview Oct 22, 2025 8:26pm

@SarahSoutoul SarahSoutoul self-assigned this Oct 16, 2025
@SarahSoutoul SarahSoutoul marked this pull request as ready for review October 17, 2025 15:31
@SarahSoutoul SarahSoutoul requested a review from a team as a code owner October 17, 2025 15:31
Comment on lines 4 to 5
search:
rank: 0
Copy link
Member

@alexisintech alexisintech Oct 22, 2025

Choose a reason for hiding this comment

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

i think we can simply boost the rank of the other - i don't think we have to mess with the rank of this page. i'm a little nervous setting it to 0, i'm not sure what implications that would have and we can't really test it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooops. That was a test that I forgot to remove lol. Thanks for catching @alexisintech!

@SarahSoutoul SarahSoutoul merged commit 966a416 into main Oct 22, 2025
7 checks passed
@SarahSoutoul SarahSoutoul deleted the ss/DOCS-11038 branch October 22, 2025 20:27
@SarahSoutoul
Copy link
Contributor Author

@alexisintech That seems to have worked when typing getToken() (with the parentheses), but with just getToken, it's still pretty low. Do we want to make the keyword getToken rather than getToken()?

Screenshot 2025-10-22 at 2 32 26 pm Screenshot 2025-10-22 at 2 32 31 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants