본문으로 건너뛰기
Skillpedia
일반 코딩33k · #8723

algolia-search

하는 일

이 스킬은 AI 에이전트가 Algolia로 빠른 검색을 만들도록 돕는 패턴을 제공합니다. 웹사이트나 앱에 검색을 추가하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓React나 Next.js 사이트에 즉시 검색을 추가하고 싶을 때.
  • ✓Algolia 검색 인덱스를 데이터와 계속 동기화해야 할 때.
  • ✓검색 결과가 관련성이 낮아 조정하고 싶은 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/algolia-search/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/algolia-search/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“브랜드와 가격 필터를 갖춘 Next.js 상점에 Algolia 즉시 검색을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 InstantSearch 훅, 서버 사이드 렌더링, 인덱싱 전략에 대한 지침을 제공합니다. 에이전트는 이를 프로젝트에 적용하고 흔한 문제를 살핍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Algolia Search Integration

Patterns

React InstantSearch with Hooks

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

Next.js Server-Side Rendering

SSR integration for Next.js with react-instantsearch-nextjs package.

Use <InstantSearchNext> instead of <InstantSearch> 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

Data Synchronization and Indexing

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)

⚠️ Sharp Edges

Issue Severity Solution
Issue critical See docs
Issue high See docs
Issue medium See docs
Issue medium See docs
Issue medium See docs
Issue medium See docs
Issue medium See docs
Issue medium See docs
자주 묻는 질문

어떤 패키지를 사용하나요?

React 및 Next.js용 algoliasearch 클라이언트와 함께 react-instantsearch 패키지를 사용합니다.

인덱스는 어떻게 업데이트하나요?

가능하면 증분 또는 부분 업데이트를 권장하며, 레코드를 약 1,000개에서 10,000개씩 묶어 처리하라고 합니다.

왜 deleteBy를 피해야 하나요?

스킬은 deleteBy가 계산 비용이 커서 가능한 한 피해야 한다고 말합니다.

상세 정보

작성자의 원본 설명

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

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8723
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬