name()

The name of the ObjFacetValue, i.e. the value of the attribute.

Copy
facets = Scrivito.getClass("BlogPost").where('tags', 'contains', 'design').facet('tags', { includeObjs: 5 });
facetName = facets[0].name();

Example: If you do faceting using the color attribute, you might get an ObjFacetValue named yellow, another one named green and so on.

Returns

String

Example