Migration: How to Migrate Facets and Dynamic Aggregation from 3.x
Facets and Dynamic Aggregation have been merged into a single feature and are now a part of RQL.
Facets
Facets are now divided into two types:
Facet
where the whole spectrum of results will generate a single outcomeRangeFacet
gives you the ability to split the whole spectrum of results into smaller ranges
The FacetSetup
document also now splits the facets into two properties. One containing Facets
, the other containing RangeFacets
.
Example
3.x |
---|
|
4.0 |
---|
|
Querying
All of the method were substituted with AggregateBy
and AggregateUsing
.
Example I
3.x |
---|
|
4.0 |
---|
|
Example II
3.x |
---|
|
4.0 |
---|
|
Remarks
Information
You can read more about Facets in our dedicated Querying article, our Indexing article or Client API article.