Back to all posts

A Butter search for your blog posts

Posted by Jake Lumetta on May 11, 2016

Pun aside, we are excited to launch built-in native search for your blog posts! It's works as you'd expect and is very simple to use:

https://api.buttercms.com/v2/search/?query=<query>

This end point provides text search functionality across all of your content. Our search algorithm is weighted in an intuitive way where keywords in titles are weighted higher than those found in the body, etc. The response is the same format as /posts/ endpoint, where the results are sorted by relevancy.

We've updated our Search API Docs with full details on this new end point. We have also updated our client libraries (Ruby, Node) to make tapping into this new functionality as simple as upgrading to the latest version.

We look forward to seeing what sorts of experiences you build on top of this new search capability!

Make sure you receive the freshest Butter product updates.
    

Related Articles