David Eric Pugh created SOLR-14403:
--------------------------------------

             Summary: random() stream blows up on "with explanation" turned on
                 Key: SOLR-14403
                 URL: https://issues.apache.org/jira/browse/SOLR-14403
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: streaming expressions
    Affects Versions: 8.5
            Reporter: David Eric Pugh


the {{random}} streaming expression is actually a facade, that wraps either a 
{{RandomStream.java}} or {{DeepRandomStream.java}}.

A query that translates to {{RandomStream}} (i.e under 5000) gives this error:

"Unable to find function name for class 
'org.apache.solr.client.solrj.io.stream.RandomStream'".

The class that is being registered in StreamFactory is the 
"random":"org.apache.solr.client.solrj.io.stream.RandomFacadeStream".

{{DeepRandomStream}} has the function name "random" hard coded, and we could 
just do that on the {{RandomStream}} as well..?  Alternatively, we could change 
up both {{DeepRandomSTream}} and {{RandomStream}} to look up the function name 
using the class {{RandomFacadeStream}}.








--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to