Here at Yoast, we've been using Algolia to power our site search for quite a while now. Specifically, we're using the WP Search with Algolia plugin by WebDevStudios to index our content. And we were reasonably happy with that set up. But then we found a better way.
A few weeks ago I came up with a relatively simple improvement that actually dramatically improved the quality of our internal search results: using the number of internal links pointing to a page as a custom ranking attribute.
Yoast SEO's link metrics
Yoast SEO maintains a table with link metrics within your site. For every post or page, we know how many other posts or pages link to that page from within the content. On a site that has managed its internal linking well, this means that your search is very easily improved with a very reliable ranking metric. If you've been using our cornerstone content functionality and our internal linking suggestions, your best pages should suddenly rank easily for their important terms.
In fact: if you use our internal link metrics like this, your site search becomes a great way to see whether you've done your internal linking right.
The meta description & social images
On top of this new feature, we also send the meta description of the post and its social image along. While it takes a slightly more complex Algolia setup, you might be able to use this in your search result listings, as we do here on yoast.com. The meta description field is simply called
yoast_seo_metadesc and the social image can be found in the
images array, under the
Get this implementation with Yoast SEO Premium 16.7
It's so easy to improve your site search using this method that it's almost a no-brainer. If you want to learn how to set up Algolia with our link count as a ranking factor, you'll need a couple of things first:
- WP Search with Algolia plugin (free and paid plans available)
- Yoast SEO Premium version 16.7 or higher
- Well-maintained internal links (use our SEO workout to check and set these more quickly).
Got those ready? Then you just need to follow a couple of steps to re-index and add the new custom ranking attribute we've made. And that's it!
Coming up next!
- Stay tuned Keep an eye on our site and social media to stay up-to-date. See where you can find us next »
- Stay tuned Keep an eye on our site and social media to stay up-to-date. All Yoast SEO webinars »