Skip to end of banner
Go to start of banner

Facet Profiles

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Introduction

  • Facet Profile extends Profiles with extra properties

  • Facet Profile it is an ordered list of field definitions with options (see below)

  • It is used to configure front-end filters used in overview pages

    • image-20240409-071043.png

Properties (options per field definition)

Facets have the following options per field definition

Property

Description

Type

Default Value

Required

ReadOnly

SelectionType

The type of selection. SHOULD: at least one selected value must match. MUST: all selected values must match.

Enum

MUST

no

no

HideEmpty

Indicates if the empty facets are hidden.

Boolean

false

no

no

Sort

On what a facet is sorted. Possible values are MostFrequent, Alphabetically, Chronologically, FixedOrder.

Enum

depends on the field definition type

no

no

ReverseOrder

Sort the results in reverse order. Can only be true if Sort = Chronologically.

Boolean

false

no

no

DefaultNumberOfValues

The number of facets to show. Must be in range [1,100].

Number

depends on the field definition type

no

no

IncludeMissingValue

Include the missing value (e.g. No Keywords).

Boolean

true

no

no

IncludeActiveValues

Include values which are present as pure MUST terms in the query (e.g. +Descriptive.Keywords.Keyword:Cork).

Boolean

false

no

no

Notes: - The following rules apply to the Sort property:

  • Values MostFrequent and Alphabetically are only applicable for non-date fields and non-enum fields, the default value is MostFrequent.

  • Value Chronologically is only applicable for profile fields having a field definition with type DateField.

  • Value FixedOrder is only applicable for profile fields having a field definition with type EnumField: values are sorted in the order in which the possible values are defined on the field definition.

  • The default value for DefaultNumberOfValues is 10 for non-date fields, 12 for date fields.

  • If SelectionType = SHOULD, the following applies: if a facet value is selected, this will affect the counts of all facets, except the facet itself. SHOULD is not applicable for date fields.

  • No labels