Re: Graph traversal: Bypass cycle detection?

2018-06-07 Thread Joel Bernstein
Ah. I'll do some testing to see exactly how nodes function behaves when a node links to itself. Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Jun 7, 2018 at 5:06 AM, Christian Spitzlay < christian.spitz...@biologis.com> wrote: > Hi, > > > > Am 07.06.2018 um 03:20 schrieb Joel Bernstein :

Re: Graph traversal: Bypass cycle detection?

2018-06-07 Thread Christian Spitzlay
Hi, > Am 07.06.2018 um 03:20 schrieb Joel Bernstein : > > Hi, > > At this time cycle detection is built into the nodes expression and cannot > be turned off. The nodes expression is really designed to do a traditional > breadth first search through a graph where cycle detection is needed so you

Re: Graph traversal: Bypass cycle detection?

2018-06-06 Thread Joel Bernstein
Hi, At this time cycle detection is built into the nodes expression and cannot be turned off. The nodes expression is really designed to do a traditional breadth first search through a graph where cycle detection is needed so you don't continually walk the same nodes. Are you looking to do random

Re: Graph Traversal

2017-10-31 Thread Kojo
Everything working fine, these functional programming is amazing. Thank you! 2017-10-31 12:31 GMT-02:00 Kojo : > Thank you, I am just starting with Streaming Expressions. I will try this > one later. > > I will open another thread, because I can´t do some simple queries using > Streaming Expressi

Re: Graph Traversal

2017-10-31 Thread Kojo
Thank you, I am just starting with Streaming Expressions. I will try this one later. I will open another thread, because I can´t do some simple queries using Streaming Expressions. 2017-10-30 12:11 GMT-02:00 Pratik Patel : > You use this in query time. Since Streaming Expressions can be pipel

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
You use this in query time. Since Streaming Expressions can be pipelined, the next stage/function of pipeline will work on the new tuples generated. On Mon, Oct 30, 2017 at 10:09 AM, Kojo wrote: > Do you store this new tuples, created by Streaming Expressions, in a new > Solr cloud collection? O

Re: Graph Traversal

2017-10-30 Thread Kojo
Do you store this new tuples, created by Streaming Expressions, in a new Solr cloud collection? Or just use this tuples in query time? 2017-10-30 11:00 GMT-02:00 Pratik Patel : > By including Cartesian function in Streaming Expression pipeline, you can > convert a tuple having one multivalued fie

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
By including Cartesian function in Streaming Expression pipeline, you can convert a tuple having one multivalued field into multiple tuples where each tuple holds one value for the field which was originally multivalued. For example, if you have following document. { id: someID, fruits: [apple, o

Re: Graph Traversal

2017-10-30 Thread Kojo
Hi, just a question, I have no deep background on Solr, Graph etc. This solution looks like normalizing data like a m2m table in sql database, is it? 2017-10-29 21:51 GMT-02:00 Pratik Patel : > For now, you can probably use Cartesian function of Streaming Expressions > which Joel implemented to

Re: Graph Traversal

2017-10-29 Thread Pratik Patel
For now, you can probably use Cartesian function of Streaming Expressions which Joel implemented to solve the same problem. https://issues.apache.org/jira/browse/SOLR-10292 http://joelsolr.blogspot.com/2017/03/streaming-nlp-is-coming-in-solr-66.html Regards, Pratik On Sat, Oct 28, 2017 at 7:38 P

Re: Graph Traversal

2017-10-28 Thread Joel Bernstein
I don't see a jira ticket for this yet. Feel free to create it and reply back with the link. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Oct 27, 2017 at 9:55 AM, Kojo wrote: > Hi, I was looking for information on Graph Traversal. More specifically, > support to search graph on multival

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 > relationships are av

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 > wrote: > > On Tue, Oct 25, 20

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 remember wondering how to do that myself. -Yon

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 would be fairly easy t

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. I _can_ do things

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 woul

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"), walk="book_s-