# FloatRangeAggregation

The field-based [FloatRangeAggregation](https://doc.ibexa.co/en/latest/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Query-Aggregation-Field-FloatRangeAggregation.html) aggregates search results by the value of the Float field.

## Arguments

- `name` - name of the Aggregation
- `contentTypeIdentifier` - string representing the content type identifier
- `fieldDefinitionIdentifier` - string representing the Field Definition identifier
- `ranges` - array of Range objects that define the borders of the specific range sets

## Example

```
$query = new Query();
$query->aggregations[] = new Aggregation\Field\FloatRangeAggregation('float', 'product', 'weight',
[
    new Query\Aggregation\Range(null, 0.25),
    new Query\Aggregation\Range(0.25, 0.75),
    new Query\Aggregation\Range(0.75, null),
]);
```
