Meilisearch
Syncs Payload CMS collection documents to a Meilisearch index via afterChange and afterDelete hooks.
Installation
pnpm add @nouance/payload-meilisearch About
Payload Meilisearch keeps a Meilisearch instance in sync with Payload collections. You configure a `host` and `apiKey`, then declare which collections map to indexes and which fields each index should contain. Each Payload collection slug becomes a Meilisearch index name. The plugin works by injecting `afterChange` and `afterDelete` hooks into the matched collections. When a document is created or updated, the configured fields are read from the document and pushed to the corresponding Meilisearch index via `addDocuments`. When a document is deleted, the matching Meilisearch record is removed. Field configuration supports an `alias` to rename a Payload field for the index, and a `transformer` function to reshape values before indexing. Aliasing a field to `id` lets you pick which field becomes the document identifier in Meilisearch. Transformers are useful for serialising complex fields like RichText into plain searchable strings. The plugin targets Payload CMS v1 and is marked alpha. Support for drafts, nested fields, and Meilisearch index options for filtering and sorting is still on the roadmap. The set of supported Payload field types is limited to Code, Date, Email, JSON, Number, Point, Radio group, Select, Text, and Textarea.
Package info
- Package name
@nouance/payload-meilisearch- Latest version
0.1.3- Unpacked size
- 29 kB
- License
- MIT
- Weekly downloads
- 16
- Last publish
- Feb 26, 2023
More from NouanceLabs
View profileSimple RBAC
Enables role-based access control in Payload CMS.
Iframe Tabs
Add iframes into separate tabs in the Payload admin panel.
Better Fields
This plugin provides improved fields for the admin panel in Payload.
Dashboard Analytics
Adds Plausible and Google Analytics widgets to the Payload admin dashboard, navigation, collections and globals.
Similar plugins
More in SearchAlgolia search
Integrates Algolia search with Payload CMS collections.
Typesense
Integrates Typesense search capabilities into Payload CMS with real-time synchronization.
AI
Generates and stores vector embeddings for Payload fields using the OpenAI or NLP Cloud APIs.
Search plugin
Search plugin for Payload enables fast searching of document records.