I’m using the jekyll plugin https://community.algolia.com/jekyll-algolia/ to push my content up to Algolia.
I have a website with a number of sub directories (
/blog…); all the content is pushed up just fine.
What I’m unable to do is limit the search to documents under
/docs. Everything else shouldn’t be searchable.
What I’ve tried:
- limiting the content pushed up to algolia. This doesn’t appear to be supported based on the docs and this issue: https://github.com/algolia/jekyll-algolia/issues/75
- doing a filter on URL. While you can filter on an exact match, you can’t filter on a substring: How do to a 'contains' in a specific attribute
I’ve also looked around the algolia docs and googled but haven’t found anything.
One possible workaround is to use the
excluded_files filter for the jekyll plugin and just exclude all the directories except
/docs. I’d rather do an include because that is more maintainable long term.
Any other suggestions?