[ 
https://issues.apache.org/jira/browse/SOLR-13047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joel Bernstein updated SOLR-13047:
----------------------------------
    Description: 
The current facet expression is a generic tool for creating multi-dimension 
aggregations. The *facet2D* Streaming Expression has semantics specific to 2 
dimensional facets which are designed to be pivoted into a matrix and operated 
on by Math Expressions. 

facet2D will use the json facet API under the covers. 

Proposed syntax:
{code:java}
facet2D(medrecords, q=*:*, x=diseases, y=symptom, dimensions="300, 10", 
count(*)){code}
The example above will return tuples containing the top 300 diseases and the 
top ten symptoms for each disease. 

  was:
The current facet expression is a generic tool for creating multi-dimension 
aggregations. The *facet2D* Streaming Expression has semantics specific to 2 
dimensional facets which are designed to be pivoted into a matrix and operated 
on by Math Expressions. 

facet2D will use the json facet API under the covers. 

Proposed syntax:
{code:java}
facet2D(collection1, q=*:*, x=cars, y=color, dimensions="1000, 10", 
count(*)){code}


> Add facet2D Streaming Expression
> --------------------------------
>
>                 Key: SOLR-13047
>                 URL: https://issues.apache.org/jira/browse/SOLR-13047
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>            Priority: Major
>
> The current facet expression is a generic tool for creating multi-dimension 
> aggregations. The *facet2D* Streaming Expression has semantics specific to 2 
> dimensional facets which are designed to be pivoted into a matrix and 
> operated on by Math Expressions. 
> facet2D will use the json facet API under the covers. 
> Proposed syntax:
> {code:java}
> facet2D(medrecords, q=*:*, x=diseases, y=symptom, dimensions="300, 10", 
> count(*)){code}
> The example above will return tuples containing the top 300 diseases and the 
> top ten symptoms for each disease. 



--
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

Reply via email to