Class FacetViewModel
- Namespace
- Dynamicweb.QueryPublisher
- Assembly
- Dynamicweb.QueryPublisher.dll
Represents a ViewModelBase for facet information.
public sealed class FacetViewModel : ViewModelBase
- Inheritance
-
FacetViewModel
- Inherited Members
Properties
FacetOptions
Collection of facet options.
public IEnumerable<FacetOptionViewModel> FacetOptions { get; set; }
Property Value
Field
Field to retrieve facet options from.
public string Field { get; set; }
Property Value
MaximumValue
Maximum value of the facet.
public object MaximumValue { get; set; }
Property Value
MinimumValue
Minimum value of the facet.
public object MinimumValue { get; set; }
Property Value
Name
The name of the facet, for example "Engine Type", presented to users as a search category. This name helps users identify different search/filter categories.
public string Name { get; set; }
Property Value
- string
The display name of the facet.
OptionCount
Number of facet options
public int OptionCount { get; set; }
Property Value
OptionResultTotalCount
Total count of results across all options
public long OptionResultTotalCount { get; set; }
Property Value
OptionWithResultCount
Number of facet options that have a result associated
public int OptionWithResultCount { get; set; }
Property Value
QueryParameter
The query parameter associated with the facet, for example "ElectricalType".
public string QueryParameter { get; set; }
Property Value
QueryParameterDefaultValue
Default value of the query parameter, if none is set.
public string QueryParameterDefaultValue { get; set; }
Property Value
QueryParameterType
The type of the query parameter.
public string QueryParameterType { get; set; }
Property Value
RenderType
How the facet will be rendered to the user, for example "Checkboxes" or "Colors".
public string RenderType { get; set; }
Property Value
Type
Type of facet, for example "Field", "List", or "Term".
public string Type { get; set; }
Property Value
Value
Value of the facet.
public string Value { get; set; }