Add fast, typo-tolerant full-text search to your application. Index your data and query it with filtering, faceting, and relevance ranking.
Open-source, lightning-fast search engine with typo tolerance
MEILISEARCH_HOSTMEILISEARCH_API_KEYOpen-source search engine with built-in curation and analytics
TYPESENSE_HOSTTYPESENSE_API_KEYManaged search-as-a-service with AI-powered relevance tuning
ALGOLIA_APP_IDALGOLIA_API_KEYSearch and index
Index documents and perform full-text search
import { search } from '@/lib/search'
// Index a document
await search.index('products', {
id: product.id,
name: product.name,
description: product.description,
category: product.category,
})
// Search with filters
const results = await search.query('products', 'wireless headphones', {
filter: { category: 'electronics' },
limit: 20,
})Add search to your Primstack project with a single command:
prim search init