You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To keep your search index in sync with your content, you can deploy the webhook handler to your preferred platform:
@@ -125,7 +138,7 @@ To keep your search index in sync with your content, you can deploy the webhook
125
138
[](https://vercel.com/new/clone?repository-url=https://github.com/mfydev/ghost-meilisearch)
126
139
[](https://deploy.workers.cloudflare.com/?url=https://github.com/mfydev/ghost-meilisearch)
127
140
128
-
1.Click one of the deployment buttons above
141
+
1.Fork this repository
129
142
2. Create a new API key which will be used by the webhook handler in Meilisearch, and set the `actions` to `["documents.add", "documents.get", "documents.delete"]` and `indexes` to `["ghost_posts"]`.
130
143
```bash
131
144
curl \
@@ -139,7 +152,8 @@ curl \
139
152
"expiresAt": null
140
153
}'
141
154
```
142
-
3. Set these environment variables in your platform's dashboard:
155
+
3. Click one of the deployment buttons above
156
+
4. Set these environment variables in your platform's dashboard:
143
157
```env
144
158
GHOST_URL=https://your-ghost-blog.com
145
159
GHOST_KEY=your-content-api-key # From Ghost Admin
@@ -167,37 +181,6 @@ Add all four events (Post published, updated, deleted, unpublished) pointing to
167
181
168
182
Now your search index will automatically update when you publish, update, or delete posts!
169
183
170
-
## 🔍 Advanced Usage
171
-
172
-
### CLI Commands
173
-
174
-
The CLI tool provides several commands:
175
-
176
-
```bash
177
-
# Initialize the index with the schema from config.json
178
-
ghost-meilisearch init --config config.json
179
-
180
-
# Sync all posts from Ghost to Meilisearch
181
-
ghost-meilisearch sync --config config.json
182
-
183
-
# Index a single post by ID
184
-
ghost-meilisearch index <post-id> --config config.json
0 commit comments