Resolve a natural-language entity term to its id
Scored-cascade NL→id resolver for products, brands, and collections. Call this BEFORE filtering to turn a free-text term (e.g. ‘Nike’, ‘NK001’, ‘Summer 2025’) into a concrete entity id. Runs three layers: exact name match (score 1.0), code/identifier prefix match (score 0.95), then trigram fuzzy match (score ≤ 0.75). Results are ordered by score desc. For type=product each result also carries brandId for one-call pivot. Score semantics are aligned with /api/taxonomies/resolve.
Authorizations
User session token issued by NextAuth. For human users accessing Solya via the web application.
Query Parameters
Natural-language entity term to resolve, e.g. 'Nike', 'NK001', 'Summer 2025'. Min 1 character.
1Entity domain to search. 'product' resolves silver.products and returns brandId; 'brand' resolves silver.brands; 'collection' resolves silver.collections.
product, brand, collection Maximum candidates to return (1–20, default 5). Applied after cascade de-duplication.
1 <= x <= 20
