From dev-return-358969-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Thu Jun 13 14:56:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7ECF918064E for ; Thu, 13 Jun 2019 16:56:05 +0200 (CEST) Received: (qmail 50740 invoked by uid 500); 13 Jun 2019 14:56:01 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 50724 invoked by uid 99); 13 Jun 2019 14:56:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2019 14:56:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 75E60E2D6D for ; Thu, 13 Jun 2019 14:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 29CBE2463B for ; Thu, 13 Jun 2019 14:56:00 +0000 (UTC) Date: Thu, 13 Jun 2019 14:56:00 +0000 (UTC) From: "Nazerke Seidan (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-13047) Add facet2D Streaming Expression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-13047?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1686= 3160#comment-16863160 ]=20 Nazerke Seidan commented on SOLR-13047: --------------------------------------- [~ctargett], closed the PR #660. > Add facet2D Streaming Expression > -------------------------------- > > Key: SOLR-13047 > URL: https://issues.apache.org/jira/browse/SOLR-13047 > Project: Solr > Issue Type: New Feature > Reporter: Joel Bernstein > Assignee: Joel Bernstein > Priority: Major > Fix For: 8.2 > > Time Spent: 1h > Remaining Estimate: 0h > > The current facet expression is a generic tool for creating multi-dimensi= on aggregations. The *facet2D* Streaming Expression has semantics specific = for 2 dimensional facets which are designed to be *pivoted*=C2=A0into a mat= rix and operated on by *Math Expressions*.=C2=A0 > facet2D will use the json facet API under the covers.=C2=A0 > Proposed syntax: > {code:java} > facet2D(medrecords, q=3D*:*, x=3Ddiseases, y=3Dsymptoms, dimensions=3D"30= 0, 10", count(*)){code} > The example above will return tuples containing the top 300 diseases and = the top ten symptoms for each disease.=C2=A0 > Using math expression the tuples can be *pivoted*=C2=A0into a matrix wher= e the rows of the matrix are the diseases, the columns of the matrix are th= e symptoms and the cells in the matrix contain the counts. This matrix can = then be *clustered*=C2=A0to find clusters of *diseases*=C2=A0that are corre= lated by *symptoms*.=C2=A0 > {code:java} > let(a=3Dfacet2D(medrecords, q=3D*:*, x=3Ddiseases, y=3Dsymptoms, dimensio= ns=3D"300, 10", count(*)), > b=3Dpivot(a, diseases, symptoms, count(*)), > c=3Dkmeans(b, 10)){code} > =C2=A0 > *Implementation Note:* > The implementation plan for this ticket is to create a new stream called = Facet2DStream. The FacetStream code is a good starting point for the new im= plementation and can be adapted for the Facet2D parameters. Similar tests t= o the FacetStream can be added to StreamExpressionTest > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org