Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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-12711, SOLR-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.