Re: Returning multiple fields in /graph streaming expression response

2019-07-23 Thread Ahmed Adel
Wrapping the expression in a fetch function as follows works: fetch(names, select(nodes(enron_emails, nodes(enron_emails, walk="kayne.coul...@enron.com->from", trackTraversal="true", gather="to"), walk="node->from", scatter="leav

Returning multiple fields in /graph streaming expression response

2019-07-22 Thread Ahmed Adel
Hi, Similar to this question ( https://mail-archives.apache.org/mod_mbox/lucene-solr-user/201907.mbox/browser), how can additional fields be returned when using /graph request handler? For example, from the documentation, for the request: nodes(enron_emails, nodes(enron_emails, walk="kayne.coul.

Re: Returning multiple fields in graph streaming expression response documents

2019-07-21 Thread Joel Bernstein
Good to hear. Joel Bernstein http://joelsolr.blogspot.com/ On Sun, Jul 21, 2019 at 5:21 PM Ahmed Adel wrote: > Yeah, it turned out to be related to the data. The “fetch” method works > fine as you described, it’s just the data distribution that caused name > field not to be fetched in a number

Re: Returning multiple fields in graph streaming expression response documents

2019-07-21 Thread Ahmed Adel
Yeah, it turned out to be related to the data. The “fetch” method works fine as you described, it’s just the data distribution that caused name field not to be fetched in a number of responses. I tested it with two other collections and it worked as expected as well. Thank you for your help getting

Re: Returning multiple fields in graph streaming expression response documents

2019-07-20 Thread Joel Bernstein
Ok, then it sounds like a different issue. Let's look at the logs following a request and see what the issue is. There will be a log record that shows the query that is sent to Solr by the fetch expression. When we look at that log we'll be able to see what the query is, and if results are returned

Re: Returning multiple fields in graph streaming expression response documents

2019-07-20 Thread Ahmed Adel
To validate this, I indexed the datasets and ran the same query on Solr 6.5.0 environment (https://archive.apache.org/dist/lucene/solr/6.5.0/) before cb9f15 commit gets into release but got the same response, no additional fields, as Solr 8.1.1. I have used the default managed schema settings in bo

Re: Returning multiple fields in graph streaming expression response documents

2019-07-19 Thread Joel Bernstein
I suspect fetch is having problem due to this commit: https://github.com/apache/lucene-solr/commit/cb9f151db4b5ad5c5f581b6b8cf2e5916ddb0f35#diff-98abfc8855d347035205c6f3afc2cde3 Later local params were turned off for anything but the lucene qparser. Which means this query doesn't work if /select

Re: Returning multiple fields in graph streaming expression response documents

2019-07-19 Thread Ahmed Adel
Hi - Tried swapping the equality sides but (surprisingly?) got the same exact response. Any additional thoughts are appreciated. Best, A. http://aadel.io On Fri, Jul 19, 2019 at 5:27 PM Joel Bernstein wrote: > Try: > > fetch(names, > select( > nodes(emails, >

Re: Returning multiple fields in graph streaming expression response documents

2019-07-19 Thread Joel Bernstein
Try: fetch(names, select( nodes(emails, walk="john...@apache.org->from", gather="to"), node as to_s), fl="name", on="to_s=email") According to the docs it looks like you have the fields reversed on the fetch. If that d

Re: Returning multiple fields in graph streaming expression response documents

2019-07-19 Thread Ahmed Adel
Hi Joel, Thank you for your thoughts. I tried the fetch function, however, the response does not contain "fl" fields of the "fetch" expression. For the above example, the modified query is as follows: fetch(names, select(nodes(emails, walk="john...@apache.org->from", gather="to"), nod

Re: Returning multiple fields in graph streaming expression response documents

2019-07-18 Thread Joel Bernstein
Hi Ahmed, Take a look at the fetch https://lucene.apache.org/solr/guide/8_0/stream-decorator-reference.html#fetch It probably makes sense to allow more field to be returned from a nodes expression as well. Joel Bernstein http://joelsolr.blogspot.com/ On Wed, Jul 17, 2019 at 3:12 AM Ahmed Adel

Re: Returning multiple fields in graph streaming expression response documents

2019-07-17 Thread Ahmed Adel
Hi, Thank you for your reply. Could you give more details on the „join“ operation, such as what the sides of the join and the joining condition would be in this case? Best regards, A. On Tue, Jul 16, 2019 at 2:02 PM markus kalkbrenner < markus.kalkbren...@biologis.com> wrote: > > > You have to

Re: Returning multiple fields in graph streaming expression response documents

2019-07-16 Thread markus kalkbrenner
You have to perform a „join“ to get more fields. > Am 16.07.2019 um 13:52 schrieb Ahmed Adel : > > Hi, > > How can multiple fields be returned in graph traversal streaming expression > response documents? For example, the following query: > > nodes(emails, > walk="john...@apache.org->fro

Returning multiple fields in graph streaming expression response documents

2019-07-16 Thread Ahmed Adel
Hi, How can multiple fields be returned in graph traversal streaming expression response documents? For example, the following query: nodes(emails, walk="john...@apache.org->from", gather="to") returns these documents in the response: { "result-set": { "docs": [ {