[ https://issues.apache.org/jira/browse/SOLR-8888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209005#comment-15209005 ]
Joel Bernstein commented on SOLR-8888: -------------------------------------- The implementation will need to keep sorted files for each iteration that look like this: nodeA, parentNode nodeB, parantNode .... These files can then be intersected with each join to implement cycle detection. The files will also be used to trace back through the nodes to get the path when the node being traversed to is found. > Add shortestPath Streaming Expression > ------------------------------------- > > Key: SOLR-8888 > URL: https://issues.apache.org/jira/browse/SOLR-8888 > Project: Solr > Issue Type: Improvement > Reporter: Joel Bernstein > > This ticket is to implement a distributed shortest path graph traversal as a > Streaming Expression. > possible expression syntax: > {code} > shortestPath(collection, > from="colA:node1", > to="colB:node2", > fq="limiting query", > maxDepth="10") > {code} > This would start from colA:node1 and traverse from colA to colB iteratively > until it finds colB:node2. The shortestPath function would emit Tuples > representing the shortest path. > The optional fq could be used to apply a filter on the traversal. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org