Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.
Add this skill
npx mdskills install sickn33/algolia-searchProvides useful Algolia patterns but lacks actionable step-by-step instructions for agents
1---2name: algolia-search3description: "Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality."4source: vibeship-spawner-skills (Apache 2.0)5---67# Algolia Search Integration89## Patterns1011### React InstantSearch with Hooks1213Modern React InstantSearch setup using hooks for type-ahead search.1415Uses react-instantsearch-hooks-web package with algoliasearch client.16Widgets are components that can be customized with classnames.1718Key hooks:19- useSearchBox: Search input handling20- useHits: Access search results21- useRefinementList: Facet filtering22- usePagination: Result pagination23- useInstantSearch: Full state access242526### Next.js Server-Side Rendering2728SSR integration for Next.js with react-instantsearch-nextjs package.2930Use <InstantSearchNext> instead of <InstantSearch> for SSR.31Supports both Pages Router and App Router (experimental).3233Key considerations:34- Set dynamic = 'force-dynamic' for fresh results35- Handle URL synchronization with routing prop36- Use getServerState for initial state373839### Data Synchronization and Indexing4041Indexing strategies for keeping Algolia in sync with your data.4243Three main approaches:441. Full Reindexing - Replace entire index (expensive)452. Full Record Updates - Replace individual records463. Partial Updates - Update specific attributes only4748Best practices:49- Batch records (ideal: 10MB, 1K-10K records per batch)50- Use incremental updates when possible51- partialUpdateObjects for attribute-only changes52- Avoid deleteBy (computationally expensive)535455## ⚠️ Sharp Edges5657| Issue | Severity | Solution |58|-------|----------|----------|59| Issue | critical | See docs |60| Issue | high | See docs |61| Issue | medium | See docs |62| Issue | medium | See docs |63| Issue | medium | See docs |64| Issue | medium | See docs |65| Issue | medium | See docs |66| Issue | medium | See docs |67
Full transparency — inspect the skill content before installing.