[ 
https://issues.apache.org/jira/browse/SOLR-8888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joel Bernstein updated SOLR-8888:
---------------------------------
    Description: 
This ticket is to implement a distributed shortest path graph traversal as a 
Streaming Expression.

Expression syntax:

{code}
shortestPath(collection, 
                     from="node1", 
                     to="node2",
                     edge="colA, colB",
                     threads="6",
                     partitionSize="300", 
                     fq="limiting query", 
                     maxDepth="4")
{code}

Th expression above will find the shortest path in a directed graph *from* 
node1 *to* node2, traversing the *edge* columns colA to colB iteratively. Each 
level in the traversal is implemented as a *parallel partitioned* nested loop 
join. The *threads* parameter controls the number of threads performing the 
join. The *partitionSize* controls the of number nodes in each join partition. 
*maxDepth* controls the number of levels to traverse. *fq* is a limiting query 
applied to each level in the traversal.

  was:
This ticket is to implement a distributed shortest path graph traversal as a 
Streaming Expression.

possible expression syntax:

{code}
shortestPath(collection, 
                     from="node1", 
                     to="node2",
                     edge="colA,colB",
                     threads="6",
                     partitionSize="300", 
                     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.


> Add shortestPath Streaming Expression
> -------------------------------------
>
>                 Key: SOLR-8888
>                 URL: https://issues.apache.org/jira/browse/SOLR-8888
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Joel Bernstein
>         Attachments: SOLR-8888.patch, SOLR-8888.patch, SOLR-8888.patch, 
> SOLR-8888.patch
>
>
> This ticket is to implement a distributed shortest path graph traversal as a 
> Streaming Expression.
> Expression syntax:
> {code}
> shortestPath(collection, 
>                      from="node1", 
>                      to="node2",
>                      edge="colA, colB",
>                      threads="6",
>                      partitionSize="300", 
>                      fq="limiting query", 
>                      maxDepth="4")
> {code}
> Th expression above will find the shortest path in a directed graph *from* 
> node1 *to* node2, traversing the *edge* columns colA to colB iteratively. 
> Each level in the traversal is implemented as a *parallel partitioned* nested 
> loop join. The *threads* parameter controls the number of threads performing 
> the join. The *partitionSize* controls the of number nodes in each join 
> partition. *maxDepth* controls the number of levels to traverse. *fq* is a 
> limiting query applied to each level in the traversal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to