Description
he goal here is basically flip the notion of "stats.facet" on it's head, so that instead of asking the stats component to also do some faceting (something that's never worked well with the variety of field types and has never worked in distributed mode) we instead ask the PivotFacet code to compute some stats X for each leaf in a pivot. We'll do this with the existing stats.field params, but we'll leverage the tag local param of the stats.field instances to be able to associate which stats we want hanging off of which facet.pivot
Example...
facet.pivot={!stats=s1}category,manufacturer stats.field={!key=avg_price tag=s1 mean=true}price stats.field={!tag=s1 min=true max=true}user_rating
...with the request above, in addition to computing the min/max user_rating and mean price (labeled "avg_price") over the entire result set, the PivotFacet component will also include those stats for every node of the tree it builds up when generating a pivot of the fields "category,manufacturer"
Attachments
Attachments
Issue Links
- is blocked by
-
SOLR-6507 various bugs using localparams with stats.field
- Closed
- is related to
-
SOLR-1782 stats.facet assumes FieldCache.StringIndex - fails horribly on multivalued fields
- Closed
-
SOLR-6682 EnumField + StatsComponent gives bad toString() for min/max, probably doesn't work in distributed search ... definitely needs more tests
- Closed
-
SOLR-5972 new statistics facet capabilities to StatsComponent facet - limit, sort and missing.
- Open
-
SOLR-3435 StatsComponents should support all SimpleFacetParameters in its facet parameter
- Closed
-
SOLR-3583 Percentiles for facets, pivot facets, and distributed pivot facets
- Closed
- supercedes
-
SOLR-3583 Percentiles for facets, pivot facets, and distributed pivot facets
- Closed