To bound a dimension with valid values and to improve calculated
relevance values, optional min and max attributes can be specified
on a dimension. Values that fall outside min or max are not
indexed. The attributes also hint at the scale of the dimension, used
in the engine’s relevance calculation algorithms. They are both
inclusive which can be disabled by setting the attributes
minInclusive or maxInclusive to false.

Double and Integer type dimensions can be used purely as scalar dimensions,
but scalar ranges can be also be defined within a scalar dimension.
These ranges are ideal for use with the drill down functionality
offered by the Overview. For
example, if you want to provide drill down functionality on an integer
dimension named “bedroom” that represents the number of bedrooms in a real estate
listing, you’d need to define ranges over which a user
can drill down. Ranges are defined as elements under a scalar
dimension where the id is an identifier for a range, and value is the range
itself using Interval Notation:

The dimension definition here also shows how to create a scalar type dimension that
supports faceting across a range of values defined using interval notation.

Once defined, a user could drill down on the ‘bedroom:5’
element, producing a result set containing all items that were >=
5. Alternatively, the could select ‘bedroom:3’ and produce a result set
of items whose bedroom count is 3, or, more accurately, >= 3 and < 4.

With the major exception of text type dimensions, keyword, tree and scalar dimension types can
support query-time calculation of facet counts for drilldown interfaces.
If the dimension declaration does not infer how to group the values, then the indexer will
automatically try to create a bucket for each unique value it encounters.

Faceting is automatically supported for tree, ordered, mutex and keyword dimensions. Scalar type
dimensions require that the facet buckets be declared using an element defining the range or
values to facet. For more information on setting up a scalar type dimension for faceting, refer to
Scalar Features.

For more information on creating a query with drill down facet counts,
refer to Facets Criterion.