arnesacnussem/jellyfin-plugin-meilisearch
About
A search plugin for Jellyfin
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMeilisearch Plugin for Jellyfin
A plugin for Jellyfin that improves search by utilizing Meilisearch as a search engine. Search logic is offloaded to a Meilisearch instance, and the response from Jellyfin is modified
Improved:
- Speed
- Results (fuzzy matching, typos)
[!NOTE] As long as your client uses
/Itemsendpoint for search, it should be supported seamlessly I guess
Inspired by JellySearch.
Setup instructions
Setup a Meilisearch instance (maybe a hosted one in the cloud will also work, but I don't recommend)
- Docker is recommended. Example
docker-compose.yml:services: meilisearch: container_name: meilisearch image: getmeili/meilisearch:v1.34 # older versions may have compatibility issues restart: unless-stopped environment: MEILI_ENV: production MEILI_NO_ANALYTICS: "true" MEILI_MASTER_KEY: super-secret-key volumes: # meilisearch's data - ./data:/meili_data ports: - 7700:7700
- Docker is recommended. Example
Install the Meilisearch plugin
- In Jellyfin:
- Add the plugin Repository:
https://raw.githubusercontent.com/arnesacnussem/jellyfin-plugin-meilisearch/refs/heads/master/manifest.json - Install the Meilisearch plugin
- Restart Jellyfin Server
- Add the plugin Repository:
- In Jellyfin:
Configure the Meilisearch plugin
- In Meilisearch plugin's page:
- Meilisearch URL: URL to your Meilisearch instance, as seen by Jellyfin (example:
http://meilisearch:7700) - Meilisearch Api Key: API key to access your Meilisearch instance (if required) (example:
super-secret-key) - Click
Save - The plugin's page should show a healthy status
- Example:
{ "meilisearch": "Server: available", "meilisearchOk": true, "averageSearchTime": "0ms", "indexStatus": { "Items": "20569", "LastIndexed": "1/28/2026 4:10:01 PM", "Documents": "20569", "IsIndexing": "False" } }
- Example:
- Meilisearch URL: URL to your Meilisearch instance, as seen by Jellyfin (example:
- In Meilisearch plugin's page:
[!NOTE] You can also set the environment variables in Jellyfin, to configure the plugin without editing the Jellyfin UI:
MEILI_URLandMEILI_MASTER_KEY
[!NOTE] If you want share one Meilisearch instance across multiple Jellyfin instance, you can fill the
Meilisearch Index Name, if leaving empty, it will use the server name.
Test Meilisearch plugin search
- Try Jellyfin search
- Issues? Check Jellyfin's logs and Meilisearch's logs
Index will update on following events:
- Server start
- Configuration change
- Library scan complete
- Update index task being triggered
Each of these rebuilds the index: the plugin writes all items into a temporary <index>_rebuild index, swaps it with
the live one and deletes the old documents, so items removed from Jellyfin do not stay in search. Items removed between
reindexes, such as Live TV programmes replaced by a guide refresh, are deleted from the index within a few seconds.
Items added or updated between reindexes, such as a newly imported episode, are indexed within a few seconds too.
If the API key is not the master key, it needs the indexes.create, indexes.delete and indexes.swap actions in
addition to document access.
Items is the number of items read from Jellyfin on the last reindex, and Documents is the number of documents
currently in the Meilisearch index.
How it works
On Jellyfin 12.0 (the version this build targets), the core feature is implemented as a Jellyfin search
provider (IExternalSearchProvider / ISearchProvider), which Jellyfin discovers via
GetExports<ISearchProvider>(). It registers with a higher priority than the built-in SQL search provider,
so search queries are served by Meilisearch first.
Because this hooks into Jellyfin internals, it only supports specific Jellyfin versions, and the mechanism
has changed over time: on Jellyfin 10.11 it used an IItemRepository decorator instead of a search provider.
I've seen JellySearch, which is a wonderful project, but I don't really like setting up a reverse proxy or any of that hassle.
So I am writing this, but it still requires a Meilisearch instance.
At this moment, only search queries are handled by this plugin, but it still improves a lot on my 200k items library.
Explore related projects
Loading…