Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12712

use JSON reach DSL format for aggregations in JSON.Facet

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Facet Module
    • None

    Description

      Context 

      [Aggregations|https://lucene.apache.org/solr/guide/7_4/json-facet-api.html#aggregation-functions are nested into facets to handle enclosing buckets. They are supplied as a strings expression, which is handled by ValueSourceParser or so.

      Problem 

      Passing complex expression as a comma separated list of arguments are problematic, it leads to the verbose naming scheme or puzzling name overload convention with optional arguments. see SOLR-12711SOLR-12325. For example, StreamingExpressions use name value syntax that's more powerful. 

      Suggesition

      Either introduce JSON syntax for subfacet aggregations, or if nested facets are able to aggregate enclosing buckets, introduce a expandable parsers (plugin point) for JSON.Facet.   

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkhl Mikhail Khludnev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: