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

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • streaming expressions
    • 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

            Unassigned Unassigned
            sarkaramrit2@gmail.com Amrit Sarkar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: