[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFG10QS249AMVFNRQJER30":3,"skill-same:01M6EFG10QS249AMVFNRQJER30":51},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFG10QS249AMVFNRQJER30","meilisearch",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmeilisearch\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Meilisearch\n\n## Overview\n\nMeilisearch is a fast, open-source search engine designed for instant, typo-tolerant search experiences. Unlike Elasticsearch, it requires zero configuration to get started — add documents, start searching. This skill covers deployment, document indexing, search queries, faceted filtering, sorting, relevancy tuning, multi-tenancy with tenant tokens, and integration with frontend (InstantSearch) and backend (Node.js, Python) applications.\n\n## Instructions\n\n### Step 1: Installation and Deployment\n\n```bash\n# Docker (recommended for production)\ndocker run -d --name meilisearch \\\n  -p 7700:7700 \\\n  -v meili_data:\u002Fmeili_data \\\n  -e MEILI_MASTER_KEY=\"your-master-key-min-16-chars\" \\\n  getmeili\u002Fmeilisearch:latest\n\n# Binary install (Linux)\ncurl -L https:\u002F\u002Finstall.meilisearch.com | sh\n.\u002Fmeilisearch --master-key=\"your-master-key-min-16-chars\"\n\n# Verify\ncurl http:\u002F\u002Flocalhost:7700\u002Fhealth\n# {\"status\":\"available\"}\n```\n\n### Step 2: Index Documents\n\n```bash\n# Add documents via REST API\ncurl -X POST 'http:\u002F\u002Flocalhost:7700\u002Findexes\u002Fproducts\u002Fdocuments' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -H 'Authorization: Bearer your-master-key' \\\n  --data-binary '[\n    {\"id\": 1, \"title\": \"iPhone 15 Pro\", \"category\": \"phones\", \"brand\": \"Apple\", \"price\": 999},\n    {\"id\": 2, \"title\": \"Galaxy S24 Ultra\", \"category\": \"phones\", \"brand\": \"Samsung\", \"price\": 1199},\n    {\"id\": 3, \"title\": \"MacBook Pro M3\", \"category\": \"laptops\", \"brand\": \"Apple\", \"price\": 1999}\n  ]'\n```\n\nWith the Node.js SDK:\n\n```javascript\n\u002F\u002F index_products.js — Index documents from a database into Meilisearch\nimport { MeiliSearch } from 'meilisearch'\n\nconst client = new MeiliSearch({\n  host: 'http:\u002F\u002Flocalhost:7700',\n  apiKey: 'your-master-key',\n})\n\nconst index = client.index('products')\n\n\u002F\u002F Add documents (Meilisearch auto-detects the primary key)\nawait index.addDocuments([\n  { id: 1, title: 'iPhone 15 Pro', category: 'phones', brand: 'Apple', price: 999 },\n  { id: 2, title: 'Galaxy S24 Ultra', category: 'phones', brand: 'Samsung', price: 1199 },\n])\n\n\u002F\u002F Configure searchable attributes (which fields to search)\nawait index.updateSearchableAttributes(['title', 'brand', 'category'])\n\n\u002F\u002F Configure filterable attributes (for faceted search)\nawait index.updateFilterableAttributes(['category', 'brand', 'price'])\n\n\u002F\u002F Configure sortable attributes\nawait index.updateSortableAttributes(['price', 'title'])\n```\n\n### Step 3: Search Queries\n\n```javascript\n\u002F\u002F search.js — Search with filters, facets, and highlighting\nconst results = await index.search('iphone', {\n  limit: 20,\n  offset: 0,\n  filter: 'price \u003C 1500 AND category = \"phones\"',\n  sort: ['price:asc'],\n  facets: ['category', 'brand'],\n  attributesToHighlight: ['title'],\n  attributesToCrop: ['description'],\n  cropLength: 50,\n})\n\n\u002F\u002F results.hits — matching documents with _formatted (highlighted) versions\n\u002F\u002F results.facetDistribution — { category: { phones: 2 }, brand: { Apple: 1, Samsung: 1 } }\n\u002F\u002F results.estimatedTotalHits — total matches\n\u002F\u002F results.processingTimeMs — typically \u003C50ms\n```\n\nREST API equivalent:\n\n```bash\ncurl -X POST 'http:\u002F\u002Flocalhost:7700\u002Findexes\u002Fproducts\u002Fsearch' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -H 'Authorization: Bearer your-search-key' \\\n  --data '{\"q\": \"iphon\", \"filter\": \"price \u003C 1500\", \"facets\": [\"category\", \"brand\"]}'\n# Note: \"iphon\" still matches \"iPhone\" — typo tolerance is on by default\n```\n\n### Step 4: Faceted Search and Filtering\n\n```javascript\n\u002F\u002F faceted_search.js — Build an e-commerce filter sidebar\n\u002F\u002F First, configure filterable attributes\nawait index.updateFilterableAttributes(['category', 'brand', 'price', 'rating', 'in_stock'])\n\n\u002F\u002F Search with multiple filters\nconst results = await index.search('laptop', {\n  filter: [\n    'category = \"laptops\"',\n    'brand IN [\"Apple\", \"Lenovo\", \"Dell\"]',\n    'price >= 500 AND price \u003C= 2000',\n    'in_stock = true',\n  ],\n  facets: ['brand', 'category', 'rating'],\n})\n\n\u002F\u002F Geo search (for store locators, nearby results)\nawait index.updateFilterableAttributes(['_geo'])\nconst nearby = await index.search('coffee', {\n  filter: '_geoRadius(48.8566, 2.3522, 5000)',  \u002F\u002F 5km radius from Paris center\n  sort: ['_geoPoint(48.8566, 2.3522):asc'],\n})\n```\n\n### Step 5: Relevancy Tuning\n\n```javascript\n\u002F\u002F relevancy.js — Fine-tune ranking rules and synonyms\n\u002F\u002F Default ranking: words → typo → proximity → attribute → sort → exactness\nawait index.updateRankingRules([\n  'words',\n  'typo',\n  'proximity',\n  'attribute',\n  'sort',\n  'exactness',\n  'price:asc',           \u002F\u002F custom: cheaper products rank higher\n])\n\n\u002F\u002F Synonyms\nawait index.updateSynonyms({\n  'phone': ['smartphone', 'mobile', 'cell phone'],\n  'laptop': ['notebook', 'ultrabook'],\n  'tv': ['television', 'monitor', 'display'],\n})\n\n\u002F\u002F Stop words (ignored in search)\nawait index.updateStopWords(['the', 'a', 'an', 'is', 'at', 'of'])\n\n\u002F\u002F Typo tolerance settings\nawait index.updateTypoTolerance({\n  enabled: true,\n  minWordSizeForTypos: { oneTypo: 4, twoTypos: 8 },\n  disableOnAttributes: ['sku', 'isbn'],    \u002F\u002F exact match for codes\n})\n```\n\n### Step 6: Multi-Tenancy with Tenant Tokens\n\n```javascript\n\u002F\u002F tenant_tokens.js — Secure multi-tenant search\n\u002F\u002F Each tenant can only search their own data\nimport { MeiliSearch } from 'meilisearch'\nimport crypto from 'crypto'\n\nfunction generateTenantToken(apiKeyUid, tenantId, searchRules) {\n  \u002F**\n   * Generate a JWT token that restricts search to a specific tenant.\n   * Args:\n   *   apiKeyUid: UID of the API key (not the key itself)\n   *   tenantId: The tenant\u002Forganization ID to restrict access to\n   *   searchRules: Index-level filter rules\n   *\u002F\n  const client = new MeiliSearch({ host: 'http:\u002F\u002Flocalhost:7700', apiKey: 'your-master-key' })\n\n  return client.generateTenantToken(apiKeyUid, searchRules, {\n    expiresAt: new Date(Date.now() + 3600 * 1000),  \u002F\u002F 1 hour\n  })\n}\n\n\u002F\u002F Usage: frontend gets a token that auto-filters by their org_id\nconst token = generateTenantToken('key-uid', 'org_123', {\n  products: { filter: 'org_id = org_123' },\n})\n```\n\n### Step 7: Frontend Integration with InstantSearch\n\n```javascript\n\u002F\u002F SearchUI.jsx — React component with Meilisearch InstantSearch\nimport { InstantSearch, SearchBox, Hits, RefinementList, Pagination } from 'react-instantsearch'\nimport { instantMeiliSearch } from '@meilisearch\u002Finstant-meilisearch'\n\nconst { searchClient } = instantMeiliSearch('http:\u002F\u002Flocalhost:7700', 'your-search-key')\n\nexport function SearchPage() {\n  return (\n    \u003CInstantSearch indexName=\"products\" searchClient={searchClient}>\n      \u003CSearchBox placeholder=\"Search products...\" \u002F>\n      \u003Cdiv style={{ display: 'flex', gap: '2rem' }}>\n        \u003Cdiv>\n          \u003Ch3>Brand\u003C\u002Fh3>\n          \u003CRefinementList attribute=\"brand\" \u002F>\n          \u003Ch3>Category\u003C\u002Fh3>\n          \u003CRefinementList attribute=\"category\" \u002F>\n        \u003C\u002Fdiv>\n        \u003Cdiv>\n          \u003CHits hitComponent={ProductHit} \u002F>\n          \u003CPagination \u002F>\n        \u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n    \u003C\u002FInstantSearch>\n  )\n}\n\nfunction ProductHit({ hit }) {\n  return (\n    \u003Cdiv>\n      \u003Ch4>{hit.title}\u003C\u002Fh4>\n      \u003Cp>${hit.price} — {hit.brand}\u003C\u002Fp>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n## Examples\n\n### Example 1: Add instant search to an e-commerce product catalog\n**User prompt:** \"I have a Next.js e-commerce app with 50,000 products in PostgreSQL. Add a search bar with instant results, typo tolerance, and category\u002Fbrand filters.\"\n\nThe agent will:\n1. Deploy Meilisearch via Docker with a master key.\n2. Write a sync script that reads products from PostgreSQL and indexes them in Meilisearch.\n3. Configure searchable, filterable, and sortable attributes.\n4. Add synonyms for common product terms.\n5. Build a React search component using InstantSearch and `@meilisearch\u002Finstant-meilisearch`.\n6. Set up a cron job or webhook to re-sync products when the database changes.\n\n### Example 2: Build a documentation search for a developer portal\n**User prompt:** \"Add search to our documentation site. We have 500+ markdown files. Users should be able to search by title and content with highlighted results.\"\n\nThe agent will:\n1. Write a script to parse all markdown files, extract frontmatter and content, and index them as documents.\n2. Configure searchable attributes with `title` ranked above `content`.\n3. Enable highlighting and content cropping for search result snippets.\n4. Build a search modal component that shows results as the user types.\n\n## Guidelines\n\n- Meilisearch is designed for end-user-facing search (product catalogs, documentation, content). For log analytics or time-series data, use Elasticsearch or ClickHouse instead.\n- Always set a master key in production — without it, anyone can modify your indexes.\n- Use the search API key (not master key) on the frontend. Generate it via the keys API or use tenant tokens for multi-tenant apps.\n- Index updates are asynchronous — `addDocuments` returns a task ID. Poll the task status or use webhooks for sync confirmation.\n- Meilisearch stores all data in memory-mapped files. For 1M documents with moderate fields, expect ~1-4 GB RAM. Plan capacity accordingly.\n- Re-index from your source of truth (database) on a schedule rather than trying to keep Meilisearch in perfect sync — it's simpler and more reliable.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fmeilisearch",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill meilisearch",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill meilisearch",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill meilisearch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fmeilisearch\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"customize.toml","OTHER","其他",2371,"https:\u002F\u002Fgithub.com\u002FdevelopAgent\u002Fbmad-start\u002Fblob\u002Fmain\u002F.qoder\u002Fskills\u002Fgds-agent-game-solo-dev\u002Fcustomize.toml",[52,61,70,79,85,91],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[58,59,60],"model","model hierarchy","model hierarchy skill",{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[67,68,69],"MCP","zoom","zoom mcp",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[76,77,78,68],"sdk","zoom apps sdk","apps",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[87],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[93]]