algolia-search-zh

Algolia search integration and relevance-tuning mode for configuring and adjusting Algolia search integration and relevance parameters.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "algolia-search-zh" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d5b08b1011e5590f2c42dc61565283e8b52658abc0e77784924721f09b02a9b8. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/algolia-search-zh before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Algolia search integration and relevance-tuning mode for configuring and adjusting Algolia search integration and relevance parameters.

0 Downloads

Introduction source: third_party · org-02qudk26 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: algolia-search
displayName: Algolia 搜索集成
description: Algolia 搜索实现的专家级模式,涵盖索引策略、React InstantSearch 与相关性调优。适用场景:为……添加搜索、algolia、instantsearch、search api、搜索功能。
summary: Algolia 搜索集成与相关性调优模式。
tags: [Algolia, 搜索, InstantSearch, React, 索引]
version: 1.0.0
source: vibeship-spawner-skills (Apache 2.0)

Algolia 搜索集成

模式

使用 Hooks 的 React InstantSearch

现代 React InstantSearch 配置,使用 hooks 实现输入联想(type-ahead)搜索。

使用 react-instantsearch-hooks-web 包与 algoliasearch 客户端。Widget 是可自定义的组件,可通过 classnames 定制。

关键 hooks:

  • useSearchBox:搜索输入处理
  • useHits:访问搜索结果
  • useRefinementList:分面(facet)过滤
  • usePagination:结果分页
  • useInstantSearch:完整状态访问

Next.js 服务端渲染

使用 react-instantsearch-nextjs 包的 Next.js SSR 集成。

使用 <InstantSearchNext> 替代 <InstantSearch> 以支持 SSR。同时支持 Pages Router 与 App Router(实验性)。

关键注意点:

  • 设置 dynamic = 'force-dynamic' 以获取最新结果
  • 通过 routing prop 处理 URL 同步
  • 使用 getServerState 获取初始状态

数据同步与索引

保持 Algolia 与你的数据同步的索引策略。

三种主要方式:

  1. 全量重建索引——替换整个索引(开销大)
  2. 整条记录更新——替换单条记录
  3. 部分更新——仅更新特定属性

最佳实践:

  • 批量记录(理想:每批 10MB,1K–10K 条记录)
  • 尽可能使用增量更新
  • 仅改属性时用 partialUpdateObjects
  • 避免 deleteBy(计算开销大)

⚠️ 易错点

问题 严重程度 解决方案
问题 严重 参见文档
问题 高 参见文档
问题 中 参见文档
问题 中 参见文档
问题 中 参见文档
问题 中 参见文档
问题 中 参见文档
问题 中 参见文档

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供 Algolia 搜索集成与相关性调优,适用于为应用添加搜索功能
  • 涵盖索引策略、React InstantSearch 与相关性调优,具有广泛实用价值
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖 algolia、instantsearch、search api 等多种变体
  • 边界清晰,不易与其他 Skill 重叠
Structure and Standards90/100

Highlights

  • Phase/步骤清晰,包含 Hooks 使用、Next.js SSR、数据同步等完整流程
  • 有端到端示例,frontmatter 完整,文档结构规范
Execution Reliability85/100

Areas to improve

  • 易错点表格内容不完整 Reported severity: Minor

    易错点表格中所有问题描述、严重程度与解决方案均为占位符"问题"、"参见文档",缺乏实质性内容

    Recommendation: 建议补充具体的易错点描述、严重程度分级和对应的解决方案,提升文档实用性

Highlights

  • 工具来源明确,使用 algoliasearch 和 react-instantsearch-hooks-web 等官方包
  • 参数说明正确,覆盖主要异常场景
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.