graph traversal filter which uses document value in the query

2021-03-04 Thread Lee Carroll
Hi All, I'm using the graph query parser to traverse a set of edge documents. An edge looks like "id":"edge1", "recordType":"journey", "Date":"2021-03-04T00:00:00Z", "Origin ":"AAC", "OriginLocalDateTime":"2021-03-04T05:00:00Z", "Destination":"AAB", "DestinationLocalDateTime":"2021-03-04T07:00:00Z

FW: Graph traversal when nodes are indirectly connected with references

2021-03-03 Thread Sravani Kambhampati
I have a graph with disjoint sets of nodes connected indirectly with a reference as shown below. Given an id is it possible to get the leaf node when the depth is unknown? [ { id: A, child: { ref: B } }, { id: B, child: { ref: C } }, { id: C, child: { ref: D } }, . . { id

Re: NullPointerException in Graph Traversal nodes streaming expression

2021-01-26 Thread Joel Bernstein
How are you constructing the Stream with classes or using a Streaming Expression? In either case can you post either the code or expression? Are there more errors in the logs? The place where this NPE is occurring is that an underlying stream is null, which leads me to believe there would be some

Re: NullPointerException in Graph Traversal nodes streaming expression

2021-01-21 Thread Mike Drob
Can you provide a sample expression that would be able to reproduce this? Are you able to try a newer version by chance - I know we've fixed a few NPEs recently, maybe https://issues.apache.org/jira/browse/SOLR-14700 On Thu, Jan 21, 2021 at 4:13 PM ufuk yılmaz wrote: > Solr version 8.4. I’m gett

NullPointerException in Graph Traversal nodes streaming expression

2021-01-21 Thread ufuk yılmaz
Solr version 8.4. I’m getting an unexplanetory NullPointerException when executing a simple 2 level nodes stream, do you have any idea what may cause this? I tried setting /stream?partialResults=true&shards.tolerant=true and shards.tolerant=true in nodes expressions, with no luck. I also tried

Re: Distributed graph traversal

2019-08-27 Thread Erick Erickson
Have you looked at streaming? https://lucene.apache.org/solr/guide/6_6/graph-traversal.html Best, Erick > On Aug 27, 2019, at 6:47 AM, Komal Motwani wrote: > > Hi All, > > I am looking at ways for doing distributed graph query in solr. The data i > am looking at can not fit into single core b

Distributed graph traversal

2019-08-27 Thread Komal Motwani
Hi All, I am looking at ways for doing distributed graph query in solr. The data i am looking at can not fit into single core because of some design constraints neither can we use collections on solrCloud. I could find a tech talk from Kevin Watters on the same and see he has raised issues with s

Re: Unable to get Solr Graph Traversal working

2018-11-08 Thread Vidhya Kailash
from one of the shards in the rec_coll collection that are generated > by this request? The logs will show the query that is actually being run on > > Joel Bernstein > http://joelsolr.blogspot.com/ > > > On Wed, Nov 7, 2018 at 1:22 PM Vidhya Kailash > wrote: > > > I am u

Re: Unable to get Solr Graph Traversal working

2018-11-08 Thread Joel Bernstein
Joel Bernstein http://joelsolr.blogspot.com/ On Wed, Nov 7, 2018 at 1:22 PM Vidhya Kailash wrote: > I am unable to get even simple graph traversal expressions like the one > below to work in my environment (7.4 and 7.5 versions). They simply yield > no results, even though I know the da

Unable to get Solr Graph Traversal working

2018-11-07 Thread Vidhya Kailash
I am unable to get even simple graph traversal expressions like the one below to work in my environment (7.4 and 7.5 versions). They simply yield no results, even though I know the data exists. curl --data-urlencode 'expr=gatherNodes(rec_coll, walk="35d40c4b9d6ddfsdf45cbb0fe4aesd7

Re: Applying streaming expression as a filter in graph traversal expression (gatherNodes)

2018-06-22 Thread Pratik Patel
events" from a search() function which I use as my seed expression for gatherNodes(). I am doing a two hop graph traversal as follows. having( having( gatherNodes( collection1, having( gatherNodes( collection1, search(.),

Re: Applying streaming expression as a filter in graph traversal expression (gatherNodes)

2018-06-21 Thread Joel Bernstein
scope of graph traversal by applying some filter along the > way as follows. > > gatherNodes(emails, > walk="john...@apache.org->from", > fq="body:(solr rocks)", > gather="to") > > > Is it possible to rep

Applying streaming expression as a filter in graph traversal expression (gatherNodes)

2018-06-20 Thread Pratik Patel
We can limit the scope of graph traversal by applying some filter along the way as follows. gatherNodes(emails, walk="john...@apache.org->from", fq="body:(solr rocks)", gather="to") Is it possible to replace "body:(sol

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

Graph traversal: Bypass cycle detection?

2018-06-06 Thread Christian Spitzlay
Hi, is it possible to bypass the cycle detection so a traversal can revisit nodes? The documentation at https://lucene.apache.org/solr/guide/7_3/graph-traversal.html#cycle-detection does not mention any and lists reasons why the cycle detection is in place. But if I were willing to live with the

Re: Using multi valued field in solr cloud Graph Traversal Query

2018-03-16 Thread Jan Høydahl
n the queries. > > > > > > > > > Adding multi-value field support is a fairly high priority so I would > expect this to be coming in a future release. > > > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Fri, Mar 10, 2017 at 5:15

Re: Graph Traversal

2017-10-31 Thread Kojo
treaming >> > > Expressions >> > > > > which Joel implemented to solve the same problem. >> > > > > >> > > > > https://issues.apache.org/jira/browse/SOLR-10292 >> > > > > http://joelsolr.blogspot.com/2017/0

Re: Graph Traversal

2017-10-31 Thread Kojo
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 > > > > >

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
om/2017/03/streaming-nlp-is- > > > > coming-in-solr-66.html > > > > > > > > Regards, > > > > Pratik > > > > > > > > On Sat, Oct 28, 2017 at 7:38 PM, Joel Bernstein > > > > wrote: > > &g

Re: Graph Traversal

2017-10-30 Thread Kojo
> > > > On Sat, Oct 28, 2017 at 7:38 PM, Joel Bernstein > > > wrote: > > > > > > > I don't see a jira ticket for this yet. Feel free to create it and > > reply > > > > back with the link. > > > > > > > > Joe

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
rote: > > > > > 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 wrot

Re: Graph Traversal

2017-10-30 Thread Kojo
n'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 in

Re: Graph Traversal

2017-10-29 Thread Pratik Patel
PM, Joel Bernstein wrote: > 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 i

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 sear

Graph Traversal

2017-10-27 Thread Kojo
Hi, I was looking for information on Graph Traversal. More specifically, support to search graph on multivalued field. Searching on the Internet, I found a question exactly the same of mine, with an answer that what I need is not implemented yet: http://lucene.472066.n3.nabble.com/Using-multi

Re: Using multi valued field in solr cloud Graph Traversal Query

2017-04-24 Thread Ganesh M
articipantID's gathered in step 1. > > Let me know if you have other questions about how to structure the data or > run the queries. > > > > > > > > > Adding multi-value field support is a fairly high priority so I would > expect this to be coming in a future release. >

Re: Using multi valued field in solr cloud Graph Traversal Query

2017-04-24 Thread mganeshs
Hi Joel, Any idea from when multi value field is supported for gatherNodes ? I am using version 6.5 ? Is it already there ? Kindly update, Ganesh -- View this message in context: http://lucene.472066.n3.nabble.com/Using-multi-valued-field-in-solr-cloud-Graph-Traversal-Query

Re: Error for Graph Traversal using Streaming Expressions

2017-03-15 Thread Zheng Lin Edwin Yeo
; > > > > > exception >> > > > > > > > > has occurred on the server, refer to server log for >> details. >> > > > > > > > > at java.util.concurrent.FutureTask.report(FutureTask. >> > java:122) >> > > > &g

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Zheng Lin Edwin Yeo
sed by: java.lang.RuntimeException: java.io.IOException: > > > > > > > > > java.util.concurrent.ExecutionException: > > java.io.IOException: > > > > --> > > > > > > > > > http://loc

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Joel Bernstein
atherNodesStream.java:406) > > > > > > > > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > > > > > > > > at org.apache.solr.common.util.ExecutorUtil$ > > > > > > MDCAwareThreadPoolExecutor. > > > > >

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Zheng Lin Edwin Yeo
t java.util.concurrent.ThreadPoolExecutor$Worker.run( > > > > > > > ThreadPoolExecutor.java:617) > > > > > > > ... 1 more > > > > > > > Caused by: java.io.IOException: java.util.concurrent. > > > > > ExecutionExcep

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Joel Bernstein
openStreams(CloudSolrStream.java:451) > > > > > > at org.apache.solr.client.solrj.io.stream.CloudSolrStream. > > > > > > open(CloudSolrStream.java:308) > > > > > > at org.apache.solr.client.solrj.io.stream.PushBackStream.open( > > > &g

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Zheng Lin Edwin Yeo
raph.GatherNodesStream$ > > > > > JoinRunner.call(GatherNodesStream.java:476) > > > > > ... 6 more > > > > > Caused by: java.util.concurrent.ExecutionException: > > > java.io.IOException: > > > > > --> http://localhost:8984/solr/email/:

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Joel Bernstein
rent.FutureTask.report(FutureTask.java:122) > > > > at java.util.concurrent.FutureTask.get(FutureTask.java:192) > > > > at org.apache.solr.client.solrj.io.stream.CloudSolrStream. > > > > openStreams(CloudSolrStream.java:445) > > > > ...

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Zheng Lin Edwin Yeo
read( > > > SolrStream.java:238) > > > at org.apache.solr.client.solrj.io.stream.CloudSolrStream$ > > > TupleWrapper.next(CloudSolrStream.java:541) > > > at org.apache.solr.client.solrj.io.stream.CloudSolrStream$ > > > StreamOpener.call(CloudSolrStream.ja

Re: Error for Graph Traversal using Streaming Expressions

2017-03-14 Thread Joel Bernstein
uot;UTF-8"?> <' > > at org.noggit.JSONParser.err(JSONParser.java:356) > > at org.noggit.JSONParser.handleNonDoubleQuoteString(JSONParser.java:712) > > at org.noggit.JSONParser.next(JSONParser.java:886) > > at org.noggit.JSONParser.nextEvent(J

Re: Error for Graph Traversal using Streaming Expressions

2017-03-13 Thread Zheng Lin Edwin Yeo
pleStream. > expect(JSONTupleStream.java:97) > at org.apache.solr.client.solrj.io.stream.JSONTupleStream. > advanceToDocs(JSONTupleStream.java:179) > at org.apache.solr.client.solrj.io.stream.JSONTupleStream. > next(JSONTupleStream.java:77) > at org.apache.solr.client.solrj.io.st

Re: Error for Graph Traversal using Streaming Expressions

2017-03-13 Thread Zheng Lin Edwin Yeo
. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Mon, Mar 13, 2017 at 1:59 AM, Zheng Lin Edwin Yeo > > wrote: > > > Hi, > > > > I am getting this error when I tried to run a query for Graph Traversal > > using Stream

Re: Error for Graph Traversal using Streaming Expressions

2017-03-13 Thread Joel Bernstein
or when I tried to run a query for Graph Traversal > using Streaming Expressions: > > { > "result-set":{ > "docs":[{ > "EXCEPTION":"java.util.concurrent.ExecutionException: > java.lang.RuntimeException: java.io.IOException: > java

Error for Graph Traversal using Streaming Expressions

2017-03-12 Thread Zheng Lin Edwin Yeo
Hi, I am getting this error when I tried to run a query for Graph Traversal using Streaming Expressions: { "result-set":{ "docs":[{ "EXCEPTION":"java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.IOException: java

Re: Using multi valued field in solr cloud Graph Traversal Query

2017-03-10 Thread Joel Bernstein
et me know if you have other questions about how to structure the data or run the queries. Adding multi-value field support is a fairly high priority so I would expect this to be coming in a future release. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Mar 10, 2017 at 5:15 PM, Prat

Using multi valued field in solr cloud Graph Traversal Query

2017-03-10 Thread Pratik Patel
I am trying to do a graph traversal query using gatherNode function. I am seeding a streaming expression to get some documents and then I am trying to map their ids(conceptid) to a multi valued field "participantIds" and gather nodes. Here is the query I am doing. gatherNodes(c

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
Yonik AND rating_i:5", > > fl="book_s,user_s,rating_i",sort="user_s asc"), > >walk="book_s->book_s", > >gather="user_s", > >fq="rating_i:[4 TO *] -user_s:Yonik", > >trackTraversal=true )&

Re: Graph Traversal Question

2016-10-26 Thread Grant Ingersoll
eviews","field":"user_s","ancestors":["book1"],"level":1}, > > {"node":"Maria","collection":"reviews","field":"user_s","ancestors":["book2"],"level&q

Re: Graph Traversal Question

2016-10-25 Thread Joel Bernstein
TO *] -user_s:Yonik", >trackTraversal=true )' > > {"result-set":{"docs":[ > {"node":"Haruka","collection":"reviews","field":"user_s"," > ancestors":["book1"],"level"

Re: Graph Traversal Question

2016-10-25 Thread Yonik Seeley
s","field":"user_s","ancestors":["book1"],"level":1}, {"node":"Maria","collection":"reviews","field":"user_s","ancestors":["book2"],"level":1}, {"EOF&qu

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-relations