StilgenStilmerce
Configuration

Search (Typesense)

Configuring Typesense for fast product search.

Search (Typesense)

Stilmerce uses Typesense for fast, typo-tolerant product search. The installer sets up Typesense automatically.

Configuration

TYPESENSE_ENABLED=true
TYPESENSE_HOST=127.0.0.1
TYPESENSE_PORT=8108
TYPESENSE_PROTOCOL=http
TYPESENSE_API_KEY=your-strong-key
TYPESENSE_COLLECTION=products
TYPESENSE_QUERY_BY=title,description,categories,tags

Checking Typesense Status

systemctl is-active typesense-server
curl http://127.0.0.1:8108/health

Re-indexing Products

If the search index becomes stale (e.g. after a bulk import), trigger a full re-index from the admin panel:

Admin → Settings → Search → Re-index

Or via the API:

curl -X POST https://api.yourdomain.com/admin/products/reindex \
  -H "Authorization: Bearer <admin-token>"

Disabling Typesense

If you prefer to use basic database search, set:

TYPESENSE_ENABLED=false

Search will fall back to PostgreSQL full-text search.

On this page