Octopress Tapir
For those running Octopress and wanting to set up a full-text search of their site, something a little nicer than the stock Google Simple Search, Tapir is a valid option. It’s a third party website that indexes your RSS feed and provides search tools against that data-set.
Note: You can find the relevant files on GitHub here: octopress-tapir
Tapir search for your Octopress blog!
Tapir works by indexing your RSS feed. Only what is included within this file will be indexed. For RSS purposes you most likely only want the last 20 or so articles but for search, you want all of them included. To handle this, we simply create a second xml file to use for search.
1 | |
- the original file
- limited to 20 most recent posts
- we use this for RSS
1 | |
- the new file
- a modified version of atom.xml
- includes all posts
- added summary field
Install
- Visit Tapirgo.com and enter the url to your
atom_search.xmllike:http://yoursite.com/atom_search.xmlAfter you enter your email and click the bigGObutton, you’ll be given both a public and a private token. - Open your
_config.ymland include the public token:tapir_token: your_id_here - Copy
loading.gifto yoursource/images/folder. - Copy
jquery-tapir.jsto yoursource/javascripts/folder. - Copy
search.htmlto yoursource/folder. - Open
source/_includes/navigation.htmland add:
1 2 3 4 5 6 7 8 9 | |
That’s all there is to it. You should now be able to search your content using the wonderful Tapir service. :)