Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12794 FacetStream Improvements
  3. SOLR-12910

Support JSON Facet string as raw parameter for FacetStream

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streaming expressions
    • Labels:
      None

      Description

      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:

      facet(collection1,
            q="*:*",
            buckets="a_s",
            bucketSorts="sum(a_i) desc",
            bucketSizeLimit=100,
            sum(a_i),
            sum(a_f),
            avg(a_f),
            count(*))
      

      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:

      facet(collection, 
            q="*:*",
            json=json.facet1)
      &json.facet1=...
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sarkaramrit2@gmail.com Amrit Sarkar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: