lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Bernstein <joels...@gmail.com>
Subject Re: Returning multiple fields in graph streaming expression response documents
Date Thu, 18 Jul 2019 16:11:55 GMT
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 <aa.0x7f@gmail.com> wrote:

> 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.kalkbrenner@biologis.com> wrote:
>
> >
> >
> > You have to perform a „join“ to get more fields.
> >
> > > Am 16.07.2019 um 13:52 schrieb Ahmed Adel <aa.0x7f@gmail.com>:
> > >
> > > Hi,
> > >
> > > How can multiple fields be returned in graph traversal streaming
> > expression
> > > response documents? For example, the following query:
> > >
> > > nodes(emails,
> > >      walk="johndoe@apache.org->from",
> > >      gather="to")
> > >
> > >
> > > returns these documents in the response:
> > >
> > > {
> > >  "result-set": {
> > >    "docs": [
> > >      {
> > >        "node": "slist@campbell.com",
> > >        "collection": "emails",
> > >        "field": "to",
> > >        "level": 1
> > >      },
> > >      {
> > >        "node": "catherine.pernot@enron.com",
> > >        "collection": "emails",
> > >        "field": "to",
> > >        "level": 1
> > >      },
> > >      {
> > >        "node": "airam.arteaga@enron.com",
> > >        "collection": "emails",
> > >        "field": "to",
> > >        "level": 1
> > >      },
> > >      {
> > >        "EOF": true,
> > >        "RESPONSE_TIME": 44
> > >      }
> > >    ]
> > >  }
> > > }
> > >
> > > How can the query above be modified to return more document fields,
> > > "subject" for example?
> > >
> > > Best regards,
> > >
> > > A.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message