Multi-Dimension Facets
A MultiDimensionFacet
takes the categories generated by N single-dimension
facets, and generates a grid, with one facet per dimension as shown in the figure below.
Each cell of the grid contains the number of documents and aggregation values that have a
given category for each of the N one-dimension facets.
Here is an example with N=2 (two dimensions):
<CategoryFacet id="location" root="Top/loc"/> <CategoryFacet id="date" root="Top/date"/> <MultiDimensionFacet id="multi" virtualRoot="Top/multi"> <MultiFacetDimension id="location"/> <MultiFacetDimension id="date"/> </MultiDimensionFacet>
Which generates the following:
Important:
When one of the two single-dimension facets used to build a
Hierarchical 2D facet has no values (for example, when value facet F1 has
/a/b/c categories, and value facet F2 has no categories), the
Hierarchical 2D facet does not display any categories. To bypass this behavior, you can
create default values for the empty facet. To do so, go to Data Model >
Classes and for the empty category facet, enter the required value in the
Default value field. |