Shmuly Itzkowitz
06/10/2025, 5:08 PMconst semanticSearchParams = {
collection: process.env.NEXT_PUBLIC_TYPESENSE_COLLECTION_NAME,
q: replaceHyphenWithSpace(query).toLowerCase(), // Ensure this contains the search term
query_by: 'manufacturerSku, sku, product_name, description',
infix: 'off, always, off, off',
query_by_weights: '8, 6, 3, 2',
sort_by: '_text_match:desc',
vector_query: `embedding:([${queryVector}], k:100, distance_threshold:0.6, alpha:0.7)`,
exclude_fields: 'embedding',
group_by: 'parent_id',
group_limit: 1,
per_page: 6,
};Alan Martini
06/10/2025, 5:17 PMinfix is only being applied to sku. Is the field that contains the hit possibly man ufacturerSku?Shmuly Itzkowitz
06/10/2025, 5:18 PM