[ https://issues.apache.org/jira/browse/SOLR-13088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727120#comment-16727120 ]
Joel Bernstein commented on SOLR-13088: --------------------------------------- Full power of Math Expressions inside of Zeppelin. zplot formats the output so Zeppelin can plot. Here is a sample expression: {code:java} let(r=random(collection1, q="*:*", fl="response_d, filesize_d", rows="500"), x=col(r, filesize_d), y=col(r, response_d), s=pairSort(x,y), zplot(x=rowAt(s, 0), y=rowAt(s,1))){code} The example above takes a random sample, extracts to vectors, pair sorts the vectors and then formats the vectors for output with zplot. I'll attach a screenshot of the result. > Add zplot Stream Evaluator to plot math expressions in Apache Zeppelin > ---------------------------------------------------------------------- > > Key: SOLR-13088 > URL: https://issues.apache.org/jira/browse/SOLR-13088 > Project: Solr > Issue Type: New Feature > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Joel Bernstein > Assignee: Joel Bernstein > Priority: Major > Attachments: SOLR-13088.patch, Screen Shot 2018-12-21 at 3.01.55 > PM.png, Screen Shot 2018-12-21 at 5.53.18 PM.png > > > The Solr Zeppelin interpreter ([https://github.com/lucidworks/zeppelin-solr]) > can already execute Streaming Expressions and therefore Math Expressions. > The *zplot* function will export the results of Solr Math Expressions in a > format the Solr Zeppelin interpreter can work with. This will allow Math > Expressions to be plotted by *Apache Zeppelin.* > Sample syntax: > {code:java} > let(a=array(1,2,3), > b=array(4,5,6), > zplot(line1=a, line2=b, linec=array(7,8,9))){code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org