algolia-core-workflow-a

Featured

Implement Algolia search with filters, facets, highlighting, and pagination. The primary money-path workflow: search records, apply filters, display results. Trigger: "algolia search", "search with algolia", "algolia filters", "algolia facets", "algolia search implementation".

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 A — Search & Filtering ## Overview Primary Algolia workflow: full-text search with filters, faceted navigation, hit highlighting, and pagination. Uses `searchSingleIndex` (v5) with real Algolia search parameters. ## Prerequisites - Completed `algolia-install-auth` and `algolia-hello-world` setup - Index populated with records (see `algolia-hello-world`) - Index settings configured with `searchableAttributes` and `attributesForFaceting` ## Instructions ### Step 1: Configure Index for Filtering ```typescript import { algoliasearch } from 'algoliasearch'; const client = algoliasearch(process.env.ALGOLIA_APP_ID!, process.env.ALGOLIA_ADMIN_KEY!); await client.setSettings({ indexName: 'products', indexSettings: { // What to search (ordered = priority matters) searchableAttributes: ['name', 'description', 'brand', 'category'], // What to filter/facet on — prefix with filterOnly() if no facet counts needed attributesForFaceting: [ 'searchable(brand)', // Searchable facet: users can search within brand values 'category', // Regular facet: shown in facet panels 'filterOnly(price)', // Filter only: no counts computed, saves CPU 'filterOnly(in_stock)', ], // Custom ranking: tie-breaker after Algolia's relevance ranking customRanking: ['desc(sales_count)', 'desc(rating)'], // What comes back in hits attributesToRetrieve: ['name', 'brand', 'price', 'im...

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