Constructing Unique Queries for Ecommerce Store
TLDR David asked how to construct unique queries in an ecommerce store. John suggested using group_by=brand
and group_limit=1
for desired results.
3
May 31, 2023 (6 months ago)
David
10:05 AM1. Apple iPhone 12
2. Apple iPhone 13
3. Apple iPhone 14
4. Samsung Galaxy S23
I'd like to get
1. Apple iPhone 12
2. Samsung Galaxy S23
3. Google Pixel 6a
4. OnePlus 11
(Apple, Samsung, Google, OnePlus would be of a key named "brand" that I'd like the results to be uniq by)
John
10:17 AMgroup_by=brand
and group_limit=1
to get one from each group3
Jun 02, 2023 (6 months ago)
David
06:50 AMTypesense
Indexed 3005 threads (79% resolved)
Similar Threads
Equitable Distribution of Suppliers in Ecommerce Platform
Max has a problem with pagination, distribution, and grouping in an ecommerce use case. Jason suggests using "group_by" but notes that dynamic group sizes are not possible.
Including All Individual Documents in a Group in Typesense
Magnus was uncertain how to include all documents within a group in Typesense, and specifically asked about ecommerce product cards. Jason published a new version of Typesense Instantsearch Adapter and advised storing all variant information for a product on each document. Magnus confirmed this as a viable solution.
Filtering Ecommerce Search Queries by Store Locations with Available Stock
Sean wanted to filter search queries by store locations with available stock; Kishore Nallan suggested using an array of store locations and mentioned an upcoming join feature.