Semantic search
Kelp semantic search - meaning match alongside keyword, named weights, collection flag, search only.
Shoppers describe. Kelp semantic search ranks by meaning, not only by the words in the title. A query like something comfy for standing all day can still hit the right products.
Keyword matching still runs alongside, so exact titles and product codes are not dropped. Semantic ranking does not invent hits - if nothing matches, the result set stays empty.
These docs say semantic search. The tenant dashboard may label the same control Hybrid search.
Two controls
| Control | Who sets it | Role |
|---|---|---|
enableSemanticSearch | Collection admin | Turns the meaning index on for the collection. |
semanticWeight | Per search request | Optional blend from meaning-heavy to keyword-only. Search only. |
Both must be on. Omit semanticWeight and the request stays keyword-only, even if the collection flag is on.
semanticWeight is a named blend, not a raw float:
| Value | Blend |
|---|---|
strict | Most meaning match |
heavy | Strong meaning match |
default | Recommended semantic blend |
balanced | Even mix of meaning and keyword |
light | Mostly keyword, some meaning |
keyword / off | Explicit keyword-only |
Do not send semanticWeight on browse. Match-all q: '*' stays listing-style - semantic ranking does not run.
The JS SDK can omit semanticWeight on short queries. Optional semanticMinWords on the client config (default 4, range 3-50) is client-side only - the API does not count words. Below the threshold the SDK leaves semanticWeight off the request.
Example
curl -X POST https://{TENANT_ID}-search.kelp.click/api/v1/collections/products/search \
-H "Content-Type: application/json" \
-H "X-Api-Key: kelp_pk_..." \
-d '{"q":"shoes that can be used in water","semanticWeight":"default","perPage":20}'Filters, facets, sort, and merchandising work the same way. The response is the usual search shape (hits, found, queryId). Highlights may be empty when a hit was surfaced by meaning rather than a token match.
See Ranking, Query parameters, and API search.