Create an object for each customer corder. In this object, it has collection - items purchased.
Create a relationship table, has column productA, productB, relations(points).
Query customer orders data and build object order.
Go through each order and update the table by adding "1" to relations.
You should be able to find the strongest relationship. From this order history, you may find out customer's behavior.
In this relationship table, you may manually increase (give points to) some relationships.
You may aslo give more points if more than 1 are purchased.
Create a relationship table, has column productA, productB, relations(points).
Query customer orders data and build object order.
Go through each order and update the table by adding "1" to relations.
You should be able to find the strongest relationship. From this order history, you may find out customer's behavior.
In this relationship table, you may manually increase (give points to) some relationships.
You may aslo give more points if more than 1 are purchased.