Re: Add certain documents right after particular document

2019-07-21 Thread Venkateswarlu Bommineni
Thanks for your reply Alex and Yogendra. @Yogendra: I have tried with grouping but it did not work. I will recheck again if I am missing somethin. @Alex : Recommendations are some of the products that comes from Solr. Here is the scenario: 1) We get 100 products from Solr on product listing pag

Re: Add certain documents right after particular document

2019-07-21 Thread Alexandre Rafalovitch
So, if the recommendations are dynamic and come from outside Solr, why do you need Solr to do anything at this stage? Sounds like the original result list is where Solr responsibility ends. You are not exposing Solr directly to the UI (you should not), so whatever your middleware is, can be coded

Re: Add certain documents right after particular document

2019-07-20 Thread Yogendra Kumar Soni
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, wrote: > Thanks Saurabh for quick response. > >

Re: Add certain documents right after particular document

2019-07-20 Thread Venkateswarlu Bommineni
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 p

Re: Add certain documents right after particular document

2019-07-20 Thread Saurabh Sharma
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 wrote: > Hello Team, > > Apologies , if you feel this question

Add certain documents right after particular document

2019-07-20 Thread Venkateswarlu Bommineni
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 ba