This JavaScript library allows you to replace the default search of your Zendesk Help Center by Algolia. Algolia is a hosted full-text, numerical, and faceted search engine capable of delivering realtime results from the first keystroke.
We'll crawl your Zendesk API to extract your Help Center content and provide you a small code snippet to power your search with Algolia.
Documentation
To be able to setup your new search on your Zendesk Help Center you'll need to have an Algolia account with a configured Zendesk Help Center crawler.
Synchronize Algolia with your Help Center data
- Login or sign-up on Algolia
- Visit our Zendesk community page and click
Join the beta
- Enter your zendesk subdomain (
your_subdomain
in your_subdomain.zendesk.com
) - When Zendesk asks you to approve Algolia in your Zendesk instance, click
Allow
- That's it! Algolia now automatically handles the indexing of your Help Center
Updating your Help Center theme
Once your data has been extracted to Algolia, you need to update your Help Center theme in order to replace the search feature by Algolia.
- Click "Customize the design"
- Select the "Document Head" template and add the following lines:
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr/algoliasearch-zendesk/1/algoliasearch-zendesk.min.css">
<script type="text/javascript" src="//cdn.jsdelivr/algoliasearch-zendesk/1/algoliasearch-zendesk.min.js"></script>
<script type="text/javascript">
algoliasearchZendeskHC({
applicationId: '<YOUR APPLICATION_ID>',
apiKey: '<YOUR SEARCH ONLY API KEY>',
subdomain: '<YOUR ZENDESK APPLICATION NAME>',
indexPrefix: 'zendesk_',
baseUrl: '/hc/',
poweredBy: true,
colors: {
primary: '#D4D4D4',
secondary: '#D4D4D4'
},
autocomplete: {
enabled: true,
inputSelector: '#query',
sections: {
enabled: true,
hits: 3
},
articles: {
enabled: true,
hits: 3
}
},
instantsearch: {
enabled: true,
tagsLimit: 15
},
translations: {
article: 'Article',
articles: 'Articles',
categories: 'Categories',
sections: 'Sections',
tags: 'Tags',
search_by: 'Search by',
no_result: 'No result',
result: 'Result',
results: 'Results',
found_in: 'Found in',
search_by: 'Search by',
placeholder_autocomplete: 'Search in sections and articles',
placeholder_instantsearch: 'Search in articles'
}
});
</script>
Demo
License
This library is MIT licensed.
Contributing
We're considering any contribution and PR, please go ahead!