I currently index product data e.g. part #, description, price etc.
Certain products can exist in a group which is also marked as a property on each product e.g. group = 'shirts'
I was wondering if it's possible when running a search to return all matching items but for those in a specific group just return the highest scoring item? So as an example if I had the following:
- Product1
- Description: "Yellow Shirt"
- Group: "shirts"
- Product2
- Description: "Blue Shirt"
- Group: "shirts"
- Product3
- Description: "Red Shirt"
- Group: "shirts"
- Product 4
- Description: Black Shirt"
- Group:
And someone runs a search for "Shirt" then only Product4 and the highest scoring of those items in the "shirts" group would get returned.
Thanks for your help