Skip to content

Commit a8cd54e

Browse files
committed
create_custom_aggregation.md: Introduce Solr's $keyMapper
1 parent e162148 commit a8cd54e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/search/extensibility/create_custom_aggregation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ For the result extractor, you can use the built-in `RangeAggregationResultExtrac
7878

7979
Tag the service with `ibexa.search.solr.query.location.aggregation.result.extractor`.
8080

81+
As `$keyMapper` to transform raw keys into more usable objects or scalar values, use `IntRangeAggregationKeyMapper`
82+
or create your own implementing [`RangeAggregationKeyMapper`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Solr-ResultExtractor-AggregationResultExtractor-RangeAggregationKeyMapper.html).
83+
8184
``` yaml
8285
services:
8386
[[= include_file('code_samples/search/custom/config/aggregation_services.yaml', 19, 26) =]]

0 commit comments

Comments
 (0)