In preProcessSearch method of Range filter stats aggregation is added:
|
$search->addAggregation($stateAgg); |
it provides data for max and min values, but, it aggregates on all documents instead of limiting to current search. IMO it should add a FilterAggregation with post filters from related search instance like it is done in filters like choice, dynamic aggregate and others. Any thoughts?
In
preProcessSearchmethod of Range filter stats aggregation is added:FilterManagerBundle/Filter/Widget/Range/Range.php
Line 63 in 103bd48
it provides data for max and min values, but, it aggregates on all documents instead of limiting to current search. IMO it should add a
FilterAggregationwith post filters from related search instance like it is done in filters like choice, dynamic aggregate and others. Any thoughts?