The shortestPath returns a list of node id's, and fetch expects a stream of tuples. So they are not compatible currently. It think makes sense to change shortestPath to return a stream of tuples so it can work with fetch and other expressions.
Are you getting good performance with the shortestPath expression? Joel Bernstein http://joelsolr.blogspot.com/ On Sun, Jan 14, 2018 at 11:47 AM, Karthik Ramachandran <mrk...@gmail.com> wrote: > Can shortestPath stream source be used with fetch? > > With below streaming expression, we only get the path, are we doing > something wrong here? > > fetch(collection, > shortestPath(collection, from="10", to="1", edge="id=parentid", > maxDepth="10"), > fl="id, name, other, details", > sort="name asc" > on="id=id") > > With Thanks & Regards > Karthik Ramachandran > > P Please don't print this e-mail unless you really need to >