You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zheng Lin Edwin Yeo <ed...@gmail.com> on 2017/01/11 12:13:00 UTC

Stream function is not getting the result

Hi,

I'm using Solr 6.2.1.

When I tried to use the stream function, I'm getting this error.

{"result-set":{"docs":[
{"EXCEPTION":null,"EOF":true}]}}


The URL which I'm using is
http://localhost:8983/solr/gettingstarted/stream?stream.body='search(gettingstarted,q="*:*",fl="id,
city", fq="city:San Pedro",sort="id asc")'

What could be wrong with my query or setup?

Regards,
Edwin

Re: Stream function is not getting the result

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
Thanks for the info Joel.

Regards,
Edwin

On 11 January 2017 at 23:08, Joel Bernstein <jo...@gmail.com> wrote:

> The http parameter is 'expr', you're using stream.body.
>
> The docs contain the basic syntax:
> https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Wed, Jan 11, 2017 at 7:13 AM, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com
> >
> wrote:
>
> > Hi,
> >
> > I'm using Solr 6.2.1.
> >
> > When I tried to use the stream function, I'm getting this error.
> >
> > {"result-set":{"docs":[
> > {"EXCEPTION":null,"EOF":true}]}}
> >
> >
> > The URL which I'm using is
> > http://localhost:8983/solr/gettingstarted/stream?stream.
> > body='search(gettingstarted,q="*:*",fl="id,
> > city", fq="city:San Pedro",sort="id asc")'
> >
> > What could be wrong with my query or setup?
> >
> > Regards,
> > Edwin
> >
>

Re: Stream function is not getting the result

Posted by Joel Bernstein <jo...@gmail.com>.
The http parameter is 'expr', you're using stream.body.

The docs contain the basic syntax:
https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions



Joel Bernstein
http://joelsolr.blogspot.com/

On Wed, Jan 11, 2017 at 7:13 AM, Zheng Lin Edwin Yeo <ed...@gmail.com>
wrote:

> Hi,
>
> I'm using Solr 6.2.1.
>
> When I tried to use the stream function, I'm getting this error.
>
> {"result-set":{"docs":[
> {"EXCEPTION":null,"EOF":true}]}}
>
>
> The URL which I'm using is
> http://localhost:8983/solr/gettingstarted/stream?stream.
> body='search(gettingstarted,q="*:*",fl="id,
> city", fq="city:San Pedro",sort="id asc")'
>
> What could be wrong with my query or setup?
>
> Regards,
> Edwin
>