Indexing with Algolia
How to index the Neurodesk documentation with Algolia
1. Prerequisites
2. Create a crawler to index the documentation
- In the Algolia Overview page, click on “Go To Crawlers”.
- Click on “Add new crawler”.
- Name your crawler (e.g.,
neurodesk-docs
). - Set the “Start URL” to your documentation URL (e.g.,
https://neurodesk.org/
). - Click “Create”.
3. Configure the crawler
- In the crawler settings, go to the “Editor” section under “SETUP”.
- You can specify how the content should be indexed. It can override the default settings.Make sure to configure
startUrls
,discoveryPatterns
,pathsToMatch
and other relevant settings to match the base URL for indexing. Redirect URLs would fail the crawler. - Run the crawler by clicking on “Run Test” in the top right corner.
- Once the test is successful, click on “Review and Publish” to start indexing the documentation.
4. Create a new Algolia index
- Log in to your Algolia account.
- Click on “Indices” in the left sidebar.
- Click on “Create index”.
- Name your index (e.g.,
neurodesk-docs
). - Click “Create”.
5. Configure the Algolia index
- In the index settings, go to the “Searchable attributes” section.
- Add attributes you want to be searchable, eg.
title
,content
. - In the “Ranking” section, set the ranking criteria according to your needs.
- Save the settings.