Ghost Meilisearch
A powerful search integration for Ghost CMS
Demo
This is a demo page for the Ghost Meilisearch integration. You can trigger the search UI by:
Ctrl+K
Cmd+K
/
Clicking the search button above
Configuration
To use Ghost Meilisearch in your Ghost theme, add the following code to your theme's default.hbs
file:
<script>
// Meilisearch configuration
window.__MS_SEARCH_CONFIG__ = {
meilisearchHost: "https://your-meilisearch-host.com/",
meilisearchApiKey: "your-meilisearch-search-api-key",
indexName: "ghost_posts",
theme: "system", // Options: "light", "dark", "system"
commonSearches: ["getting started", "tutorial", "guide"]
};
</script>
<script src="search.min.js"></script>
<link rel="stylesheet" href="styles.css">
The webhook endpoint is available at
/api/webhook