Hi all/Pat,
I have created index by Solr, user two actions: purchase and view,
index looks like this:
Fields/indexNo | itemId | purchase | view
----------------------------------------------------------------------------------------
1 | 11 | 12 13 14 15 | 12 13 14 15 16
2 | 12 | 13 18 19 | 12 13 18 17 19
3 | 13 | 20 21 22 | 11 10 12 20 21
22
4 | 15 | | 20 21
5 | 16 | 15 16 | 14 15 16 10 18
----------------------------------------------------------------------------------------
A. If a user’s view history : 13 and 14, now recommended for him -
"other people also viewed these items":
Solr Query: q:view=13 or q:view=14, will be return the line
1,2,5 index data, use "view" field together is OK?
B. If a user’s view history : 14 and 15, and purchase history : 15, now
recommended for him - "other people also purchased these items":
Solr Query: (q:view=14 or q:view=15) and (q:purchase=15), will
be return the line 1,5 index data, use "purchase" field together is OK?
recommendation are : 12,13,14,15,15,16.
The above is that right? If it’s right, the "itemId" field is never
used.
And the "indexNo" number order is important? there is no use.
Thanks,
chepoo