Amrit Sarkar created SOLR-12910:
-----------------------------------

             Summary: Support JSON Facet string as raw parameter for FacetStream
                 Key: SOLR-12910
                 URL: https://issues.apache.org/jira/browse/SOLR-12910
             Project: Solr
          Issue Type: Sub-task
      Security Level: Public (Default Security Level. Issues are Public)
          Components: streaming expressions
            Reporter: Amrit Sarkar


FacetStream source 
(https://lucene.apache.org/solr/guide/7_5/stream-source-reference.html#facet) 
converts the stream parameters passed into JSON Facet string internally and 
gets executed.
e.g. facet stream request:
{code}
facet(collection1,
      q="*:*",
      buckets="a_s",
      bucketSorts="sum(a_i) desc",
      bucketSizeLimit=100,
      sum(a_i),
      sum(a_f),
      avg(a_f),
      count(*))
{code}

It would be a nice addition if we can support raw JSON Facet string as input 
for FacetStream to make it more flexible from application dev standpoint.

The facet stream request can look something like:
{code}
facet(collection, 
      q="*:*",
      json=json.facet1)
&json.facet1=...
{code}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to