Re: Streaming Expressions shortestPath

2018-01-14 Thread Karthik Ramachandran
Joel, Should I create a JIRA for making shortestPath return stream of tuples? On Sun, Jan 14, 2018 at 11:52 PM, Karthik Ramachandran wrote: > Joel, > Thanks, I did try using cartesianProduct then fetch, it is working as > excepted. For my dataset has only 5 or 6 level for that shortestPath >

Re: Streaming Expressions shortestPath

2018-01-14 Thread Karthik Ramachandran
Joel, Thanks, I did try using cartesianProduct then fetch, it is working as excepted. For my dataset has only 5 or 6 level for that shortestPath response time is ~5 sec and with cartesianProduct and fetch I am getting ~6.5 sec. Is there any other way to achieve this? For my use case graph query

Re: Streaming Expressions shortestPath

2018-01-14 Thread Joel Bernstein
Actually I think you can achieve what you're looking for by using the cartesianProduct expression around the shortest expression. The construct would look like this: fetch(cartesianProduct(shortesPath())) The link below describes how the cartesianProduct expression works: https://lucene.apache.or

Re: Streaming Expressions shortestPath

2018-01-14 Thread Joel Bernstein
The shortestPath returns a list of node id's, and fetch expects a stream of tuples. So they are not compatible currently. It think makes sense to change shortestPath to return a stream of tuples so it can work with fetch and other expressions. Are you getting good performance with the shortestPath

Streaming Expressions shortestPath

2018-01-14 Thread Karthik Ramachandran
Can shortestPath stream source be used with fetch? With below streaming expression, we only get the path, are we doing something wrong here? fetch(collection, shortestPath(collection, from="10", to="1", edge="id=parentid", maxDepth="10"), fl="id, name, other, details", sort="nam

Re: Error with Streaming Expressions - shortestPath

2017-03-15 Thread Zheng Lin Edwin Yeo
This issue is caused by the same issue as the other thread, in which the solrconfig.xml was carried forward from the previous version, and is not updated correctly to reflect based on the latest Solr 6.4.2. Regards, Edwin On 14 March 2017 at 23:09, Joel Bernstein wrote: > Ok. I updated the othe

Re: Error with Streaming Expressions - shortestPath

2017-03-14 Thread Joel Bernstein
Ok. I updated the other thread with a URL to run based on what I've seeing in the logs. Try running that URL and let's see what comes back. Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Mar 14, 2017 at 10:26 AM, Zheng Lin Edwin Yeo wrote: > Hi Joel, > > This is a standard Solr 6.4.1 inst

Re: Error with Streaming Expressions - shortestPath

2017-03-14 Thread Zheng Lin Edwin Yeo
Hi Joel, This is a standard Solr 6.4.1 install. I got the same error even after I upgrade it to Solr 6.4.2. Regards, Edwin On 14 March 2017 at 21:30, Joel Bernstein wrote: > Looks like there might be something strange with your configuration. Did > you upgrade an existing install or is this a

Re: Error with Streaming Expressions - shortestPath

2017-03-14 Thread Joel Bernstein
Looks like there might be something strange with your configuration. Did you upgrade an existing install or is this a standard Solr 6.4.1 install? Joel Bernstein http://joelsolr.blogspot.com/ On Tue, Mar 14, 2017 at 6:22 AM, Zheng Lin Edwin Yeo wrote: > Hi, > > I tired to run the following Stre

Error with Streaming Expressions - shortestPath

2017-03-14 Thread Zheng Lin Edwin Yeo
Hi, I tired to run the following Streaming query with the shortestPath Stream Source. http://localhost:8983/solr/email/stream?expr=shortestPath(email, from="ed...@mail.com", to="ad...@mail.com", edge="from_address=to_address", threads="6", partitionSize="300", maxDepth="4")&indent=t