Skip to content

Commit e15db11

Browse files
committed
create_custom_aggregation.md: Explain why only location tag, fix tag.
1 parent 3433f9b commit e15db11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/search/extensibility/create_custom_aggregation.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,20 @@ You provide it with two arguments:
6464
- The aggregation class in `aggregationClass`
6565
- The field name in search index in `searchIndexFieldName`
6666

67+
In this example, the field is `priority_i` which exists only for locations.
68+
6769
=== "Solr"
6870

6971
Tag the service with `ibexa.search.solr.query.location.aggregation.visitor`.
7072

73+
For content-based aggregations, use the ibexa.search.solr.query.content.aggregation.visitor tag.
74+
7175
=== "Elasticsearch"
7276

73-
Tag the service with `ibexa.elasticsearch.query.location.aggregation_visitor`.
77+
Tag the service with `ibexa.search.elasticsearch.query.location.aggregation_visitor`.
78+
79+
For content-based aggregations, use the ibexa.search.elasticsearch.query.content.aggregation.visitor tag.
80+
7481

7582
For the result extractor, you can use the built-in `RangeAggregationResultExtractor` and provide it with the aggregation class in the `aggregationClass` parameter.
7683

0 commit comments

Comments
 (0)