Grouping can be used, Suppose you have recommendations 2,3 for id 1 and 6 for id 5. You can use group query to get these document together. group.query=id:(1 OR 2 OR 3)&group.query=id:(5 OR 6)
On Sun 21 Jul, 2019, 9:47 AM Venkateswarlu Bommineni, <bvr...@gmail.com> wrote: > Thanks Saurabh for quick response. > > Did you mean to index recommended products as child documents ? and get > them back using block join to get the results ? > > If yes , difficulty is recommendations are very dynamic and they totally > depends on the user's session and how many products and type of the product > he has viewed. so Its really impossible to index them. > > Thanks, > Venkat. > > On Sat, Jul 20, 2019 at 9:07 PM Saurabh Sharma <saurabh.infoe...@gmail.com > > > wrote: > > > Hi, > > > > You can add recommendations as child documents and use block join for > > retrieval. By adding as child it will easy for you to keep track of the > > recommendations. > > > > Thanks > > Saurabh > > > > On Sun, Jul 21, 2019, 8:16 AM Venkateswarlu Bommineni <bvr...@gmail.com> > > wrote: > > > > > Hello Team, > > > > > > Apologies , if you feel this question is silly and weird. > > > > > > Here is the scenario I am trying to achieve. > > > > > > 1) Customers come to PCAT (Product category/listing pages) [we hit Solr > > to > > > get the results] > > > 2) Customer selects a product and goes to product details page. > > > 3) When customer comes back to PCAT , we will hit third party service > and > > > get some recommendations. > > > *problem : W*e want to add those recommendations right after the > product > > > that customer viewed previously. > > > > > > Is there any way we can tell to Solr to add those products right after > a > > > particular product while giving us the response ? > > > > > > > > > Thanks, > > > Venkat. > > > > > >