algolia-core-workflow-b

Featured

Implement Algolia indexing pipeline: data sync, partial updates, synonyms, and rules. The secondary money-path workflow: keep your index in sync with source data. Trigger: "algolia indexing", "sync data to algolia", "algolia synonyms", "algolia rules", "algolia partial update", "algolia reindex".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Algolia Core Workflow B — Indexing & Data Sync ## Overview Keep your Algolia index synchronized with your source database. Covers full reindex, incremental updates, partial updates, synonyms, and query rules. ## Prerequisites - Completed `algolia-install-auth` setup - Familiarity with `algolia-core-workflow-a` (search) - Source database or API with change tracking (timestamps, events) ## Instructions ### Step 1: Full Reindex with replaceAllObjects ```typescript import { algoliasearch } from 'algoliasearch'; const client = algoliasearch(process.env.ALGOLIA_APP_ID!, process.env.ALGOLIA_ADMIN_KEY!); // replaceAllObjects atomically swaps index content // Internally: creates temp index → indexes all records → moves temp to target // Search continues on old data until swap is complete — zero downtime async function fullReindex(records: Record<string, any>[]) { const { taskID } = await client.replaceAllObjects({ indexName: 'products', objects: records, batchSize: 1000, // Records per batch (default 1000) }); await client.waitForTask({ indexName: 'products', taskID }); console.log(`Full reindex complete: ${records.length} records`); } ``` ### Step 2: Incremental Updates with partialUpdateObject ```typescript // Only update changed fields — much faster than full saveObjects async function updateProductPrice(objectID: string, newPrice: number) { await client.partialUpdateObject({ indexName: 'products', objectID, attributesToUpdate: { ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category