Re: Graph Traversal Question

2016-10-26 Thread Grant Ingersoll
On Wed, Oct 26, 2016 at 10:46 AM Joel Bernstein wrote: > Grant, can you describe your use case? Currently we can filter on the > relationship using a filter query. So I was wondering what use case would > involve retrieving the relationship. Are you looking to discover what >

Re: Graph Traversal Question

2016-10-26 Thread Joel Bernstein
Grant, can you describe your use case? Currently we can filter on the relationship using a filter query. So I was wondering what use case would involve retrieving the relationship. Are you looking to discover what relationships are available? One of the assumptions I made was that users would know

Re: Graph Traversal Question

2016-10-26 Thread Grant Ingersoll
The other way to think about is: I want to put labels on the edges. In my case, the label is the relationship, in your case, the label is the rating or author. On Wed, Oct 26, 2016 at 7:26 AM Yonik Seeley wrote: > On Wed, Oct 26, 2016 at 7:13 AM, Grant Ingersoll

Re: Graph Traversal Question

2016-10-26 Thread Yonik Seeley
On Wed, Oct 26, 2016 at 7:13 AM, Grant Ingersoll wrote: > On Tue, Oct 25, 2016 at 6:26 PM Yonik Seeley wrote: > > In your example below it would be akin to injecting the rating onto those > responses as well, not just in the 'fq'. Gotcha... Yeah, I

Re: Graph Traversal Question

2016-10-26 Thread Grant Ingersoll
On Tue, Oct 25, 2016 at 6:46 PM Joel Bernstein wrote: > Because the edges are unique on the subject->object there isn't currently a > way to capture the relationship. Aggregations can be rolled up on numeric > fields and as Yonik mentioned you can track the ancestor. > > It

Re: Graph Traversal Question

2016-10-26 Thread Grant Ingersoll
On Tue, Oct 25, 2016 at 6:26 PM Yonik Seeley wrote: > You can get the nodes that to came from by adding trackTraversal=true > Yeah, I've tried that. It's not quite what I want. That just gets me the "subject". What I'm trying to do is more akin to what a triple store does.

Re: Graph Traversal Question

2016-10-25 Thread Joel Bernstein
Because the edges are unique on the subject->object there isn't currently a way to capture the relationship. Aggregations can be rolled up on numeric fields and as Yonik mentioned you can track the ancestor. It would be fairly easy to track the relationship by adding a relationship array that

Re: Graph Traversal Question

2016-10-25 Thread Yonik Seeley
You can get the nodes that to came from by adding trackTraversal=true A cut'n'paste example from my Lucene/Solr Revolution slides: curl $URL -d 'expr=gatherNodes(reviews, search(reviews, q="user_s:Yonik AND rating_i:5", fl="book_s,user_s,rating_i",sort="user_s asc"),

Graph Traversal Question

2016-10-25 Thread Grant Ingersoll
Hi, I'm playing around with the new Graph Traversal/GatherNodes capabilities in Solr 6. I've been indexing Yago facts ( http://www.mpi-inf.mpg.de/departments/databases-and-information-systems/research/yago-naga/yago/downloads/) which give me triples of something like subject-relationship-object