Atishay Jain
04/05/2025, 5:12 PM{supplierId, partNumber, quantity, price}
.
Problem 1:
How can I apply different quantity filters per partNumber?
Example: (partNumber == "P1" AND quantity >= 10) OR (partNumber == "P2" AND quantity >= 20)
Right now, quantity filter applies globally across all selected partNumbers.
Note : Like in the video I have applied a facet on partNumber "12340-57K02-0A0" and it shows the result that the part is available at "Essarr Automotives" and quantity is 5, now If say partNumber is "12340-57K02-0A0"
along with minimum quantity 6 so it should not show "Essarr Automotives", but if I say minimum quantity as 4 then it will start showing it.
Problem 2:
How can I group search results by supplierId
so that I can see what parts each supplier has in one place?
Currently, each {supplierId, partNumber}
comes as a separate result.
Note : I'm using react-instantsearch-dom
with RefinementList
for filtering partNumbers.
Thanks in Advance !