SKILL

algolia-search

Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.

Target: Search & knowledge management. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Algolia Search Integration
  • Patterns
  • React InstantSearch with Hooks
  • Next.js Server-Side Rendering
  • Data Synchronization and Indexing
  • ⚠️ Sharp Edges

Modern React InstantSearch setup using hooks for type-ahead search. Uses react-instantsearch-hooks-web package with algoliasearch client. Widgets are components that can be customized with classnames. Key hooks: useSearchBox: Search input handling useHits: Access search results useRefinementList: Facet filtering usePagination: Result pagination useInstantSearch: Full state access SSR integration for Next.js with react-instantsearch-nextjs package. Use instead of for SSR. Supports both Pages Router and App Router (experimental). Key considerations: Set dynamic = 'force-dynamic' for fresh results Handle URL synchronization with routing prop Use getServerState for initial state Indexing strategies for keeping Algolia in sync with your data. Three main approaches: 1. Full Reindexing - Replace entire index (expensive) 2. Full Record Updates - Replace individual records 3. Partial Updates - Update specific attributes only Best practices: Batch records (ideal: 10MB, 1K-10K records per batch) Use incremental updates when possible partialUpdateObjects for attribute-only changes Avoid deleteBy (computationally expensive) | Issue | Severity | Solution | |-------|----------|----------| | Issue

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
davila7/claude-code-templates
Source file
cli-tool/components/skills/development/algolia-search/SKILL.md
Fixed revision
21be197f100a12b8d0dd9a211cc244c8179f84d3
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: davila7/claude-code-templates · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:44.023Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.