[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"marketplace-site-banners":3,"github-stars":9,"meilisearch":115},[4],{"id":5,"icon":6,"content":7,"link":8,"include_paths":6,"exclude_paths":6},"5cf2f5f6-aecf-4395-8c23-69de326fdf02",null,"Directus V12 is here","https:\u002F\u002Fdirectus.com\u002Fresources\u002Fv12-built-for-the-whole-team",{"id":10,"node_id":11,"name":12,"full_name":13,"private":14,"owner":15,"html_url":33,"description":34,"fork":14,"url":35,"forks_url":36,"keys_url":37,"collaborators_url":38,"teams_url":39,"hooks_url":40,"issue_events_url":41,"events_url":42,"assignees_url":43,"branches_url":44,"tags_url":45,"blobs_url":46,"git_tags_url":47,"git_refs_url":48,"trees_url":49,"statuses_url":50,"languages_url":51,"stargazers_url":52,"contributors_url":53,"subscribers_url":54,"subscription_url":55,"commits_url":56,"git_commits_url":57,"comments_url":58,"issue_comment_url":59,"contents_url":60,"compare_url":61,"merges_url":62,"archive_url":63,"downloads_url":64,"issues_url":65,"pulls_url":66,"milestones_url":67,"notifications_url":68,"labels_url":69,"releases_url":70,"deployments_url":71,"created_at":72,"updated_at":73,"pushed_at":74,"git_url":75,"ssh_url":76,"clone_url":77,"svn_url":33,"homepage":78,"size":79,"stargazers_count":80,"watchers_count":80,"language":81,"has_issues":82,"has_projects":82,"has_downloads":82,"has_wiki":14,"has_pages":14,"has_discussions":82,"forks_count":83,"mirror_url":6,"archived":14,"disabled":14,"open_issues_count":84,"license":85,"allow_forking":82,"is_template":14,"web_commit_signoff_required":14,"has_pull_requests":82,"pull_request_creation_policy":90,"topics":91,"visibility":32,"forks":83,"open_issues":84,"watchers":80,"default_branch":111,"temp_clone_token":6,"custom_properties":112,"organization":113,"network_count":83,"subscribers_count":114},7122594,"MDEwOlJlcG9zaXRvcnk3MTIyNTk0","directus","directus\u002Fdirectus",false,{"login":12,"id":16,"node_id":17,"avatar_url":18,"gravatar_id":19,"url":20,"html_url":21,"followers_url":22,"following_url":23,"gists_url":24,"starred_url":25,"subscriptions_url":26,"organizations_url":27,"repos_url":28,"events_url":29,"received_events_url":30,"type":31,"user_view_type":32,"site_admin":14},15967950,"MDEyOk9yZ2FuaXphdGlvbjE1OTY3OTUw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15967950?v=4","","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus","https:\u002F\u002Fgithub.com\u002Fdirectus","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Ffollowers","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Ffollowing{\u002Fother_user}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fgists{\u002Fgist_id}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fstarred{\u002Fowner}{\u002Frepo}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fsubscriptions","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Forgs","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Frepos","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Fevents{\u002Fprivacy}","https:\u002F\u002Fapi.github.com\u002Fusers\u002Fdirectus\u002Freceived_events","Organization","public","https:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus","The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fforks","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fkeys{\u002Fkey_id}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcollaborators{\u002Fcollaborator}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fteams","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fhooks","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues\u002Fevents{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fevents","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fassignees{\u002Fuser}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fbranches{\u002Fbranch}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Ftags","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Fblobs{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Ftags{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Frefs{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Ftrees{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fstatuses\u002F{sha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Flanguages","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fstargazers","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcontributors","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fsubscribers","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fsubscription","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcommits{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fgit\u002Fcommits{\u002Fsha}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcomments{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues\u002Fcomments{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcontents\u002F{+path}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fcompare\u002F{base}...{head}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fmerges","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002F{archive_format}{\u002Fref}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fdownloads","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fissues{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fpulls{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fmilestones{\u002Fnumber}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fnotifications{?since,all,participating}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Flabels{\u002Fname}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Freleases{\u002Fid}","https:\u002F\u002Fapi.github.com\u002Frepos\u002Fdirectus\u002Fdirectus\u002Fdeployments","2012-12-12T01:35:36Z","2026-07-18T05:08:19Z","2026-07-17T21:10:45Z","git:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus.git","git@github.com:directus\u002Fdirectus.git","https:\u002F\u002Fgithub.com\u002Fdirectus\u002Fdirectus.git","https:\u002F\u002Fdirectus.com",447310,36507,"TypeScript",true,4850,399,{"key":86,"name":87,"spdx_id":88,"url":6,"node_id":89},"other","Other","NOASSERTION","MDc6TGljZW5zZTA=","all",[92,93,94,95,96,97,12,98,99,100,101,102,103,104,105,106,107,108,109,110],"api","app","cms","composable","data-visualization","database","graphql","headless-cms","javascript","mariadb","mssql","mysql","no-code","node","postgresql","sql","sqlite","typescript","vue","main",{},{"login":12,"id":16,"node_id":17,"avatar_url":18,"gravatar_id":19,"url":20,"html_url":21,"followers_url":22,"following_url":23,"gists_url":24,"starred_url":25,"subscriptions_url":26,"organizations_url":27,"repos_url":28,"events_url":29,"received_events_url":30,"type":31,"user_view_type":32,"site_admin":14},326,{"metadata":6,"logo":116,"helpful_resources":117,"extensions":121,"date_updated":124,"user_updated":125,"date_created":126,"user_created":125,"sort":6,"id":127,"category":128,"description":129,"slug":130,"name":131,"content":132,"website":133,"status":134,"external_resources":135,"extensionDetails":136},"973a367c-1b19-4197-bd57-20f25b035be9",[118],{"title":119,"url":120},"Meilisearch Documentation","https:\u002F\u002Fwww.meilisearch.com\u002Fdocs",[122,123],"directus-extension-meilisearch-integration","@directus-labs\u002Fmeilisearch-operation","2025-07-27T20:34:49.380Z","1cd0a355-b103-477d-9375-61e88f3110f8","2025-07-11T14:29:16.954Z","602f480c-1402-4d95-a6b2-d90b86a50e55","Search","Power fast, relevant search experiences with Meilisearch's lightning-fast search engine","meilisearch","Meilisearch","\u003Cp>Meilisearch offers a fast and user-friendly search engine designed to deliver relevant results in real time. It&rsquo;s built for developers and teams who need efficient, customizable search experiences without the complexity of traditional search platforms.\u003C\u002Fp>\n\u003Cp>When it comes to managing data and content in Directus, Meilisearch stands out as a practical solution for adding high-performance search capabilities. By connecting Directus with Meilisearch through available extensions, you can index your collections automatically and keep results up to date as your content changes. This means your users can quickly find the information they need, even in large or complex datasets.\u003C\u002Fp>\n\u003Cp>For teams working with structured content, Meilisearch makes it simple to sort, filter, and search across multiple fields. The integration supports instant updates, so any changes in Directus are quickly reflected in your search results. Whether you&rsquo;re building a site, internal tool, or data platform, Meilisearch brings speed and accuracy to your content workflows.\u003C\u002Fp>","https:\u002F\u002Fwww.meilisearch.com","published",[],[137,187],{"name":123,"description":138,"verified":14,"id":139,"readme":140,"type":141,"last_updated":142,"host_version":143,"downloads":144,"total_downloads":145,"sandbox":14,"license":146,"publisher":147,"versions":153,"formatted_name":182,"formatted_readme":183,"formatted_description":184,"featured_image":185,"images":186,"repository_url":171,"recent_downloads_7_days":145,"recent_downloads_30_days":145},"Intergrate Directus content with Meilisearch. ","1f42c220-3194-417e-a240-b054acfbfaaf","# Meilisearch Operation\n\nIntergrate Directus content with Meilisearch. \n\n![Meilisearch Operation Banner](https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fmeilisearch-operation\u002Fdocs\u002Fmeilisearch-operation.jpg)\n\n## Requirements\n\n- An Meilisearch cloud project or selfhosted project with access to the API.\n- The Master Key.\n\n_The operation is processed on the server side. If using localhost, Meilisearch must be on the same server._\n\n## Installation\n\nRefer to the Official Guide for details on installing the extension from the Marketplace or manually.\n\n## Usage\n\nOnce installed, select the Meilisearch as an operation in the flow, then required values into the fields provided. Here is detailed information on each field.\n\n|  Field  |  Type  |  Comments  |\n|---------|--------|------------|\n| Host    | `URL` | For cloud projects, the URL will look something like this: `https:\u002F\u002Fmy-Meilisearch-project-a0123bc.es.reigon-1.aws.elastic.cloud`. A local project will have a URL like this: `http:\u002F\u002F127.0.0.1:7700` |\n| API Key | `string` | The master key |\n| Index | `string` | The identifier for the index. This is usually the collection such as the `{{$trigger.collection}}` variable. |\n| Action | Create, Read, Update or Delete | Choose the desired action for this request. |\n| Item&nbsp;ID\u002FKey | `string`, `integer` or an Array | The identifier for the item. Typically `{{$trigger.key}}` or `{{$trigger.keys}}`. |\n| Item&nbsp;Data | `json` | The content for this request. This can be `{{$trigger.key}}` or the output from another operation. |\n| Query | `json` | A Meilisearch query object. [API Reference](https:\u002F\u002Fwww.meilisearch.com\u002Fdocs\u002Freference\u002Fapi\u002Fdocuments#get-documents-with-get) |\n\n### On Create\n\n1. Create a flow that is triggered on item.create and choose all the collection to include.\n2. Add the Meilisearch operation and set:\n   - index to `{{$trigger.collection}}`\n   - action to Create\n   - item id\u002Fkey to `{{$trigger.key}}`\n   - item data to `{{$trigger.payload}}`.\n\n### On Update\n\n1. Create a flow that is triggered on item.update and choose all the collection to include.\n2. Add the Meilisearch operation and set:\n   - index to `{{$trigger.collection}}`\n   - action to Update\n   - item id\u002Fkey to `{{$trigger.keys}}`\n   - item data to `{{$trigger.payload}}`.\n\n### On Delete\n\n1. Create a flow that is triggered on item.delete and choose all the collection to include.\n2. Add the Meilisearch operation and set:\n   - index to `{{$trigger.collection}}`\n   - action to Delete\n   - item id\u002Fkey to `{{$trigger.keys}}`\n\n### Manual Trigger\n\nThis is useful if you want to manually index items using a manual flow.\n\n1. Create a second flow that is triggered by another flow and set the Response body to the Data of the last operation.\n2. Add the Meilisearch operation and set:\n   - index to `{{$trigger.collection}}`\n   - action to Update\n   - item id\u002Fkey to `{{$trigger.key}}`\n   - item data to `{{$trigger.payload}}`.\n3. Create a manual flow set the following:\n   - choose the collections to include\n   - location to Collection only\n   - leave 'Required Selection' checked\n4. Add the Read Data operation with the following:\n   - collection set to `{{$trigger.body.collection}}`\n   - IDs set to `{{$trigger.body.keys}}`\n5. Create a Script operation to transform that data into valid payloads. Copy and paste the following:\n```\nmodule.exports = async function(data) {\n\treturn Array.isArray(data['$last']) ? data['$last'].map((item) => {\n    \treturn {\n            collection: data['$trigger'].body.collection,\n            key: item.id,\n            payload: item,\n        };\n    }) : [\n      {\n        collection: data['$trigger'].body.collection,\n        key: data['$last'].id,\n        payload: data['$last'],\n      }\n    ];\n}\n```\n6. Create an operation that triggers another flow.\n   - From the dropdown, cloose the flow created in step 1\n   - Set the Iteration mode to serial\n   - Set the Payload to `{{$last}}`\n   \nNow you can open any of the included collections and tick all the items to index, then click the flows icon (lightning bolt) from the right navigation bar and click the button. The label will match what you called the flow.\n","operation","2026-03-04T20:25:02.446Z","^11.0.0",[],0,"MIT",{"username":148,"verified":82,"id":149,"github_username":148,"github_name":150,"github_blog":151,"github_bio":6,"github_location":6,"github_company":6,"github_avatar_url":152},"bryantgillespie","85f85c84-9af0-4ba7-a30f-3617605d412b","Bryant Gillespie","https:\u002F\u002Fwww.bryantgillespie.com","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F23302570?v=4",[154,168],{"version":155,"package":139,"publisher":156,"type":141,"host_version":143,"publish_date":157,"verified":14,"id":158,"url_repository":6,"url_homepage":6,"url_bugs":6,"file_count":159,"unpacked_size":160,"sandbox":14,"sandbox_requested_scopes":6,"license":146,"bundled":161,"maintainers":162},"1.0.0","a48fac17-eee7-4ea1-a8ff-47c7fc203367","2025-06-25T14:49:59.027Z","2eff49f2-1038-4766-9a5b-641dc5e261d7",2,5251,[],[163,164,165,166,167],12692,12693,12694,12695,12696,{"version":169,"package":139,"publisher":149,"type":141,"host_version":143,"publish_date":142,"verified":14,"id":170,"url_repository":171,"url_homepage":172,"url_bugs":173,"file_count":174,"unpacked_size":175,"sandbox":14,"sandbox_requested_scopes":6,"license":146,"bundled":176,"maintainers":177},"1.0.1","f61ad734-c1c6-4a10-a62f-fca5425add97","https:\u002F\u002Fgithub.com\u002Fdirectus-labs\u002Fextensions.git","https:\u002F\u002Fgithub.com\u002Fdirectus-labs\u002Fextensions#readme","https:\u002F\u002Fgithub.com\u002Fdirectus-labs\u002Fextensions\u002Fissues",4,92607,[],[178,179,180,181],13863,13864,13865,13866,"Meilisearch Operation","\u003Ch1>Meilisearch Operation\u003C\u002Fh1>\n\u003Cp>Intergrate Directus content with Meilisearch.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fmeilisearch-operation\u002Fdocs\u002Fmeilisearch-operation.jpg\" alt=\"Meilisearch Operation Banner\">\u003C\u002Fp>\n\u003Ch2>Requirements\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>An Meilisearch cloud project or selfhosted project with access to the API.\u003C\u002Fli>\n\u003Cli>The Master Key.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cem>The operation is processed on the server side. If using localhost, Meilisearch must be on the same server.\u003C\u002Fem>\u003C\u002Fp>\n\u003Ch2>Installation\u003C\u002Fh2>\n\u003Cp>Refer to the Official Guide for details on installing the extension from the Marketplace or manually.\u003C\u002Fp>\n\u003Ch2>Usage\u003C\u002Fh2>\n\u003Cp>Once installed, select the Meilisearch as an operation in the flow, then required values into the fields provided. Here is detailed information on each field.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Field\u003C\u002Fth>\n\u003Cth>Type\u003C\u002Fth>\n\u003Cth>Comments\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Host\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>URL\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>For cloud projects, the URL will look something like this: \u003Ccode>https:\u002F\u002Fmy-Meilisearch-project-a0123bc.es.reigon-1.aws.elastic.cloud\u003C\u002Fcode>. A local project will have a URL like this: \u003Ccode>http:\u002F\u002F127.0.0.1:7700\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>API Key\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>string\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The master key\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Index\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>string\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The identifier for the index. This is usually the collection such as the \u003Ccode>{{$trigger.collection}}\u003C\u002Fcode> variable.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Action\u003C\u002Ftd>\n\u003Ctd>Create, Read, Update or Delete\u003C\u002Ftd>\n\u003Ctd>Choose the desired action for this request.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Item&nbsp;ID\u002FKey\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>string\u003C\u002Fcode>, \u003Ccode>integer\u003C\u002Fcode> or an Array\u003C\u002Ftd>\n\u003Ctd>The identifier for the item. Typically \u003Ccode>{{$trigger.key}}\u003C\u002Fcode> or \u003Ccode>{{$trigger.keys}}\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Item&nbsp;Data\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>json\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>The content for this request. This can be \u003Ccode>{{$trigger.key}}\u003C\u002Fcode> or the output from another operation.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Query\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>json\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>A Meilisearch query object. \u003Ca href=\"https:\u002F\u002Fwww.meilisearch.com\u002Fdocs\u002Freference\u002Fapi\u002Fdocuments#get-documents-with-get\">API Reference\u003C\u002Fa>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch3>On Create\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Create a flow that is triggered on item.create and choose all the collection to include.\u003C\u002Fli>\n\u003Cli>Add the Meilisearch operation and set:\n\u003Cul>\n\u003Cli>index to \u003Ccode>{{$trigger.collection}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>action to Create\u003C\u002Fli>\n\u003Cli>item id\u002Fkey to \u003Ccode>{{$trigger.key}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>item data to \u003Ccode>{{$trigger.payload}}\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch3>On Update\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Create a flow that is triggered on item.update and choose all the collection to include.\u003C\u002Fli>\n\u003Cli>Add the Meilisearch operation and set:\n\u003Cul>\n\u003Cli>index to \u003Ccode>{{$trigger.collection}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>action to Update\u003C\u002Fli>\n\u003Cli>item id\u002Fkey to \u003Ccode>{{$trigger.keys}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>item data to \u003Ccode>{{$trigger.payload}}\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch3>On Delete\u003C\u002Fh3>\n\u003Col>\n\u003Cli>Create a flow that is triggered on item.delete and choose all the collection to include.\u003C\u002Fli>\n\u003Cli>Add the Meilisearch operation and set:\n\u003Cul>\n\u003Cli>index to \u003Ccode>{{$trigger.collection}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>action to Delete\u003C\u002Fli>\n\u003Cli>item id\u002Fkey to \u003Ccode>{{$trigger.keys}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch3>Manual Trigger\u003C\u002Fh3>\n\u003Cp>This is useful if you want to manually index items using a manual flow.\u003C\u002Fp>\n\u003Col>\n\u003Cli>Create a second flow that is triggered by another flow and set the Response body to the Data of the last operation.\u003C\u002Fli>\n\u003Cli>Add the Meilisearch operation and set:\n\u003Cul>\n\u003Cli>index to \u003Ccode>{{$trigger.collection}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>action to Update\u003C\u002Fli>\n\u003Cli>item id\u002Fkey to \u003Ccode>{{$trigger.key}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>item data to \u003Ccode>{{$trigger.payload}}\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>Create a manual flow set the following:\n\u003Cul>\n\u003Cli>choose the collections to include\u003C\u002Fli>\n\u003Cli>location to Collection only\u003C\u002Fli>\n\u003Cli>leave 'Required Selection' checked\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>Add the Read Data operation with the following:\n\u003Cul>\n\u003Cli>collection set to \u003Ccode>{{$trigger.body.collection}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>IDs set to \u003Ccode>{{$trigger.body.keys}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>Create a Script operation to transform that data into valid payloads. Copy and paste the following:\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cpre>\u003Ccode>module.exports = async function(data) {\n\treturn Array.isArray(data['$last']) ? data['$last'].map((item) =&gt; {\n    \treturn {\n            collection: data['$trigger'].body.collection,\n            key: item.id,\n            payload: item,\n        };\n    }) : [\n      {\n        collection: data['$trigger'].body.collection,\n        key: data['$last'].id,\n        payload: data['$last'],\n      }\n    ];\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Col>\n\u003Cli>Create an operation that triggers another flow.\n\u003Cul>\n\u003Cli>From the dropdown, cloose the flow created in step 1\u003C\u002Fli>\n\u003Cli>Set the Iteration mode to serial\u003C\u002Fli>\n\u003Cli>Set the Payload to \u003Ccode>{{$last}}\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Now you can open any of the included collections and tick all the items to index, then click the flows icon (lightning bolt) from the right navigation bar and click the button. The label will match what you called the flow.\u003C\u002Fp>\n","Intergrate Directus content with Meilisearch.","https:\u002F\u002Fraw.githubusercontent.com\u002Fdirectus-labs\u002Fextensions\u002Fmain\u002Fpackages\u002Fmeilisearch-operation\u002Fdocs\u002Fmeilisearch-operation.jpg",[185],{"name":122,"description":188,"verified":14,"id":189,"readme":190,"type":191,"last_updated":192,"host_version":193,"downloads":194,"total_downloads":145,"sandbox":14,"license":6,"publisher":195,"versions":198,"formatted_name":256,"formatted_readme":257,"formatted_description":188,"images":258,"repository_url":203,"recent_downloads_7_days":145,"recent_downloads_30_days":145},"An extension that integrates Meilisearch with Directus.","ebfd4317-9ded-43fa-b7d8-e57eed004dce","# Meilisearch integration with Directus\nThe extension integrates Meilisearch with Directus via hooks. Setup is configured in the \"Meilisearch Settings\" collection, via the content editor, and Directus has to be restarted after changes (due to limitations with hooks).\n\n## Installation\n[Enable non-sandboxed extensions](\"https:\u002F\u002Fdocs.directus.io\u002Fextensions\u002Fmarketplace\u002Fpublishing.html#extension-types\") in the Marketplace, by adding the environment variable \"MARKETPLACE_TRUST: all\" in the docker-compose file.\nOr refer to the [Official Guide](\"https:\u002F\u002Fdocs.directus.io\u002Fextensions\u002Finstalling-extensions.html#installing-via-the-npm-registry\") for details on installing the extension manually.\n\n## Usage\nOnce the extension has been installed and it has created the \"Meilisearch Settings\" collection, insert the meilisearch endpoint, meilisearch api key and the collections configuration. Restart directus to activate the integration.\n![Meilisearch Settings page](meilisearch-settings.webp)\n\nExample collections configuration:\n```\n[\n    \"collection\": \"pages\",\n    \"queryFilter\": {\n        \"status\": {\n            \"_eq\": \"published\",\n        },\n    },\n    \"actionFilter\": {\n        \"status\": \"published\",\n    },\n    \"fields\": [\n        \"id\",\n        \"title\",\n        \"category\",\n        \"category.name\",\n        \"slug\",\n        \"blocks.item:hero_blocks.title\"\n        \"blocks.item:hero_blocks.content\"\n    ]\n]\n```\n\n### Commands\nIf you feel the need, you can run the npx directus meilisearch:reindex command to reindex all configured collections.\n\n## TODO\n1. Introduce notifications when an add, update or delete operation fails.\n   It should be possible to select which users should receive these notifications.\n   I just can't figure out the correct way to create a many-to-many field via FieldsService and RelationsService. When I've tried replicating what the data studio app does, I get a variety of errors.\n\n2. Maybe introduce an option to control flattenAndStripHtml.\n\n3. Enable testing of the collections configuration, so that users can see the expected document output before saving.","hook","2025-10-02T10:25:57.754Z","^10.10.0",[],{"username":196,"verified":14,"id":197,"github_username":6,"github_name":6,"github_blog":6,"github_bio":6,"github_location":6,"github_company":6,"github_avatar_url":6},"r43vm4nn","b22dd939-580e-4cc6-b6c7-fe9965c3197f",[199,210,217,225,233,240,248],{"version":200,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":201,"verified":14,"id":202,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":206,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":207,"maintainers":208},"1.0.5","2025-07-15T09:46:16.986Z","0301759c-21ad-430b-bbc5-7b4a8610e5d0","https:\u002F\u002Fgithub.com\u002FHealios\u002Fdirectus-extension-meilisearch-integration.git","https:\u002F\u002Fgithub.com\u002FHealios\u002Fdirectus-extension-meilisearch-integration#readme","https:\u002F\u002Fgithub.com\u002FHealios\u002Fdirectus-extension-meilisearch-integration\u002Fissues",255685,[],[209],12765,{"version":211,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":192,"verified":14,"id":212,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":213,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":214,"maintainers":215},"1.0.6","06f3aec0-785e-4383-9834-4b27ffc69b39",255736,[],[216],13155,{"version":155,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":218,"verified":14,"id":219,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":220,"unpacked_size":221,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":222,"maintainers":223},"2024-08-03T13:21:12.595Z","17cb12c2-c722-464c-9096-76a8b5bfc161",3,38215,[],[224],11206,{"version":226,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":227,"verified":14,"id":228,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":229,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":230,"maintainers":231},"1.0.4","2025-07-15T08:57:33.795Z","26d53de5-ec2b-4091-af28-371dcd6a00ed",255596,[],[232],12764,{"version":169,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":234,"verified":14,"id":235,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":236,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":237,"maintainers":238},"2024-08-20T06:31:57.804Z","9f715286-c6b4-4270-8a11-343315383fc3",255463,[],[239],11260,{"version":241,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":242,"verified":14,"id":243,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":244,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":245,"maintainers":246},"1.0.3","2025-07-03T07:35:18.842Z","aafaa381-2c7e-4601-91b5-764adaa98df8",255510,[],[247],12740,{"version":249,"package":189,"publisher":197,"type":191,"host_version":193,"publish_date":250,"verified":14,"id":251,"url_repository":203,"url_homepage":204,"url_bugs":205,"file_count":174,"unpacked_size":252,"sandbox":14,"sandbox_requested_scopes":6,"license":6,"bundled":253,"maintainers":254},"1.0.2","2024-09-02T08:28:07.902Z","cca991cd-c210-4026-9d75-6fc502826701",255494,[],[255],11340,"Meilisearch Integration","\u003Ch1>Meilisearch integration with Directus\u003C\u002Fh1>\n\u003Cp>The extension integrates Meilisearch with Directus via hooks. Setup is configured in the \"Meilisearch Settings\" collection, via the content editor, and Directus has to be restarted after changes (due to limitations with hooks).\u003C\u002Fp>\n\u003Ch2>Installation\u003C\u002Fh2>\n\u003Cp>\u003Ca href=\"\">Enable non-sandboxed extensions\u003C\u002Fa> in the Marketplace, by adding the environment variable \"MARKETPLACE_TRUST: all\" in the docker-compose file.\nOr refer to the \u003Ca href=\"\">Official Guide\u003C\u002Fa> for details on installing the extension manually.\u003C\u002Fp>\n\u003Ch2>Usage\u003C\u002Fh2>\n\u003Cp>Once the extension has been installed and it has created the \"Meilisearch Settings\" collection, insert the meilisearch endpoint, meilisearch api key and the collections configuration. Restart directus to activate the integration.\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FHealios\u002Fdirectus-extension-meilisearch-integration\u002Fmain\u002Fmeilisearch-settings.webp\" alt=\"Meilisearch Settings page\">\u003C\u002Fp>\n\u003Cp>Example collections configuration:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>[\n    \"collection\": \"pages\",\n    \"queryFilter\": {\n        \"status\": {\n            \"_eq\": \"published\",\n        },\n    },\n    \"actionFilter\": {\n        \"status\": \"published\",\n    },\n    \"fields\": [\n        \"id\",\n        \"title\",\n        \"category\",\n        \"category.name\",\n        \"slug\",\n        \"blocks.item:hero_blocks.title\"\n        \"blocks.item:hero_blocks.content\"\n    ]\n]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Commands\u003C\u002Fh3>\n\u003Cp>If you feel the need, you can run the npx directus meilisearch:reindex command to reindex all configured collections.\u003C\u002Fp>\n\u003Ch2>TODO\u003C\u002Fh2>\n\u003Col>\n\u003Cli>\n\u003Cp>Introduce notifications when an add, update or delete operation fails.\nIt should be possible to select which users should receive these notifications.\nI just can't figure out the correct way to create a many-to-many field via FieldsService and RelationsService. When I've tried replicating what the data studio app does, I get a variety of errors.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>Maybe introduce an option to control flattenAndStripHtml.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>Enable testing of the collections configuration, so that users can see the expected document output before saving.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Fol>",[]]