You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Prosenjit Sinha (JIRA)" <ji...@apache.org> on 2017/05/23 00:12:04 UTC

[jira] [Created] (SOLR-10730) Need to support for graph traversal based on a path

Prosenjit Sinha created SOLR-10730:
--------------------------------------

             Summary: Need to support for graph traversal based on a path
                 Key: SOLR-10730
                 URL: https://issues.apache.org/jira/browse/SOLR-10730
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Prosenjit Sinha


I have parent child relationship where parent's name is kept as a field in child document. Parent name at each level is unique. Given a path to the child I want to find out the leaf node. e.g., 
Fields->id,Name,ParentName
Document1->id1,node1,
Document2->id2,node2,node1
Document3->id3,node3,node2
Document4->id4,node4,node2

I have 2 requirements:
1. I should be able to find Document3 from this path: "node1\node2\node3" without making multiple queries.

2. if I do a traversal from Root to leaf, there should be a way where it returns me the path with respect to the root. So, the traversal output should be like this:
id,Name,ParentName,TraversedPath
id1,node1,,node1
id2,node2,node1,node1\node2
id3,node3,node2,node1\node2\node3
id4,node4,node2,node1\node2\node4



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org