Skip to content
impulseDOCS
Get Started

Indexing & Querying

Search operations use scoped credentials — an admin key for indexing and a search-only key safe for browsers. Manage both from My Impulse or the Search API 1.0.

Terminal window
# Add or update documents
curl -X POST "$SEARCH_URL/indexes/products/documents" \
-H "Authorization: Bearer $SEARCH_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '[{ "id": 1, "name": "Impulse T-Shirt", "tags": ["apparel"] }]'
# Query (search-only key — safe client-side)
curl "$SEARCH_URL/indexes/products/search?q=tshrt" \
-H "Authorization: Bearer $SEARCH_KEY"

Typos (tshrt) still match. Configure facets, filterable attributes, and synonyms per index.