Algolia Search
Scannednpx machina-cli add skill omer-metin/skills-for-antigravity/algolia-search --openclawAlgolia Search
Identity
Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
- For Creation: Always consult
references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here. - For Diagnosis: Always consult
references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user. - For Review: Always consult
references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.
Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
Source
git clone https://github.com/omer-metin/skills-for-antigravity/blob/main/skills/algolia-search/SKILL.mdView on GitHub Overview
Learn practical patterns for implementing Algolia search, including indexing strategies, React InstantSearch, and relevance tuning. Build fast, accurate search experiences with features like typeahead, autocomplete, and faceted search across product catalogs, docs, and content sites.
How This Skill Works
The skill outlines pattern-driven guidance for configuring Algolia indices, defining ranking rules, and applying synonyms and typo tolerance. It also covers wiring React InstantSearch widgets (SearchBox, Hits, RefinementList) and using replica indices for A/B testing to refine relevance without impacting live results.
When to Use It
- You need fast, typo-tolerant search on a product catalog.
- You want typeahead or autocomplete to guide queries.
- You require faceted search with multiple filters.
- You’re migrating an app to Algolia and need solid indexing patterns.
- You need to test and optimize relevance using replicas and ranking strategies.
Quick Start
- Step 1: Install Algolia and React InstantSearch libraries.
- Step 2: Create an Algolia index, configure attributesForFaceting and ranking rules.
- Step 3: Wire up React InstantSearch components (SearchBox, Hits, RefinementList) and test with sample data.
Best Practices
- Define clear, consistent index names and specify attributesForFaceting and searchableAttributes clearly.
- Use replica indices to test different ranking rules without affecting live search.
- Tune synonyms, pluralization, and typo tolerance to match user expectations.
- Expose intuitive UI with React InstantSearch widgets for SearchBox, Hits, and RefinementList.
- Enable analytics and query insights to continuously improve relevance.
Example Use Cases
- Retail storefront search with category facets and price filters.
- News site search with keyword relevance and date-based filtering.
- SaaS documentation search across help articles and tutorials.
- Marketplace product search with multi-attribute filters (brand, price, rating).
- Documentation site with search-as-you-type and quick navigation results.