Full-text search for your Jekyll blog with ElasticSearch.
_site
directory using BeautifulSoup to get more accurate content instead of using the raw Markdown.indexer.py
to reflect your location.python main.py <path_to_blog>
, running without an argument will assume your compiled blog is located at ~/blog/_site
.indexer.py
to point to the correct HTML elements for title, post content etc (assuming you have unique CSS classes for these).searcher.py
script. Due the fact that the library relies on the generated output within the _site
directory, you will need to re-run the indexer after you have re-built your blog when making changes. This unfortunately means that we cannot use something like Git webhooks to further automate the process, however it is still easy when put inside a script to execute after your site is built.