I am digging into graph traversal. I want to make queries crossing
collections.

Using gatherNodes function on Streaming Expressions, it is possible as the
example bellow

gatherNodes(logs,
            gatherNodes(emails,
                        search(emails, q="body:(solr rocks)",
fl="from", sort="score desc", rows="20")
                        walk="from->from",
                        gather="to",
                        scatter="leaves, branches"),
            walk="node->user",
            fq="action:edit",
            gather="contentID")


However, as far as I understand, gatherNode is a function to make forward
query, to get nodes that the root node points to.

On the other hand, on standard queries it is possible to make reverse
queries, to get nodes that points to the root node.



The question is, is it possible to make a standard query between
collections?

The example bellow demonstrates how to concatenate graph queries, but is it
possible to do it on different collections?

*+{!graph from=”folder_id” to “folder_id”
traversalFilter=”table:document”}({!graph from=”folder_id” to=“parent_id”
traversalFilter=”table:folder”}folder_id:123) +bar*

Reply via email to