Our Spring Java website's MySql database has got the following tables
in SOLR we've indexed all PRODUCTS which have a unique id which is PRODUCT_ID.
My job
Steps I used
Problem - solr query
Can someone please help me with a solution ?
Additional Note:I was thinking if there is a way I can group all CUSTOMER_IDs who bought or commented on a particular product into 1 number or token or some sort and then check if the logged in CUSTOMER's ID friends IDs belong to that group. But haven't figured out a formula yet.
I would try something like this ...
Solr Index
Person
Products
Title
fq=friends:id&facet.field=Products_Purchased
This will also make sure you have unique ids for Products.
2nd Query - I would use these Ids to query solr probably in the batch of 20-50 max with pagination.