Facet declaration methods
| Method | Does |
|---|---|
AddFacet(…) |
Adds a facet; the engine picks values or ranges |
AddValueFacet(…) |
One bucket per value |
AddRangeFacet(…) |
Ranges of numbers or dates, chosen by the engine |
AddRangeFacet(…, from, to) |
Adds one range of your own |
AddSingleRangeFacet(…) |
One bucket from the lowest value to the highest |
SetFacetValue(…, value) |
Selects a value |
SetFacetRangeValue(…, from, to) |
Selects a range |
SetFacetMissingValue(…) |
Selects "no value" |
SetFacetOptions(…) |
maxValues, minCount, includeMissing, sortByCount, rangeCount |
Each method takes the property as an expression, a name or an id. Faceting needs
Indexed = true. NotFacet = true keeps a property out, and a relation takes part only with
[RelationProperty(Facet = true)].