This is a bug. I just checked and the random expression is not mapped in
the /stream handler. The test cases pass because they register the random
function explicitly inside the test case. This is something that we need to
fix, so the /stream handler registration always gets tested.

I'm fairly sure I remember testing random at scale through the /stream
handler so I'm not sure how this missed getting committed.

I will fix this for Solr 6.4.

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

On Tue, Jan 3, 2017 at 6:46 PM, Joe Obernberger <
joseph.obernber...@gmail.com> wrote:

> I'm getting an error:
>
> {"result-set":{"docs":[
> {"EXCEPTION":"Invalid stream expression random(MAIN,q=\"FULL_DOCUMENT:
> obamacare\",rows=100,fl=DocumentId) - function 'random' is unknown (not
> mapped to a valid TupleStream)","EOF":true}]}}
>
> When trying to use the streaming random function.  I'm using curl with:
> curl --data-urlencode 'expr=random(MAIN,q="FULL_DOCU
> MENT:obamacare",rows="100",fl="DocumentId")'
> http://cordelia:9100/solr/MAIN/stream
>
> Any ideas?  Thank you!
>
> -Joe
>
>

Reply via email to