Hi Joel, This stream seems to be somewhat alternative. Thanks for the suggestion.
The main issue here would be: 1. As I am traversing up in a tree, I would need a dummy root node for all documents, as “to” is mandatory. 2. This emits one tuple per path. So, for my requirement, I will get only one data tuple. This removes the advantage of streaming, with 1 tuple per node. So, it seems that I have to use {!graph...} syntax. As, my collection has one shard, so it should be same, basically. Though, one noticeable advantage of using shortest path, would be: 1. The list inside tuple, is based on traversal order. Unlike {!graph..}. Though, I can sort by date to get the same result. Additionally I would get full result, will all document fields. Thanks for suggestion though. From: Joel Bernstein<mailto:joels...@gmail.com> Sent: 20 February 2021 01:20 AM To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> Subject: Re: nodes() stream to infinite depth You could see if this meets you needs: https://lucene.apache.org/solr/guide/8_8/stream-source-reference.html#shortestpath Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Feb 19, 2021 at 2:45 PM Subhajit Das <subhajitdas...@live.com> wrote: > Hi Joel, > > Thanks for response. But, is there any way to simulate the same? > > > From: Joel Bernstein<mailto:joels...@gmail.com> > Sent: 20 February 2021 01:13 AM > To: solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org> > Subject: Re: nodes() stream to infinite depth > > Nodes is designed for a stepwise graph walk. It doesn't do a full > traversal. > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > > On Fri, Feb 19, 2021 at 4:47 AM Subhajit Das <subhajitdas...@live.com> > wrote: > > > > > Hi, > > > > “{!graph ...}” goes to infinite depth by default. But “nodes()” stream > > does not go to infinite depth. > > > > Is there any way to go to infinite depth? > > > > > >