David Paulsson
10/28/2022, 12:58 PM{
id: 1
productName: "Stripe",
variantName: "Throw, Black / White"
},
{
id: 2
productName: "Monster",
variantName: "Throw, Ochre / Off-white Stripe"
}
I've set my params to prioritise productName
over variantName
, like this query_by: 'sku,productName,variantName,designer,tags', query_by_weights: '5,4,3,1,2'
. When I search stripe throw
, id 2 comes before id 1, even through id 1 is an exact hit of the more prioritised field. Why? id 2 has two exact matches in its variantName
, but I still don't want that to "win" as the productName
match is more important for me.
Images in đź§µDavid Paulsson
10/28/2022, 1:03 PMJason Bosco
10/28/2022, 3:18 PMDavid Paulsson
10/28/2022, 3:29 PMJason Bosco
10/28/2022, 4:13 PMDavid Paulsson
10/28/2022, 5:17 PM