Thanks!  I'll give this a shot.

-Joe


On 1/3/2017 8:52 PM, Joel Bernstein wrote:
Luckily https://issues.apache.org/jira/browse/SOLR-9103 is available in
Solr 6.3

So you can register the random expression through the solrconfig. The
ticket shows an example.

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

On Tue, Jan 3, 2017 at 7:59 PM, Joel Bernstein <joels...@gmail.com> wrote:

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