
FacetPath
- Namespace
- Rowles.LeanCorpus.Search.Scoring
- Assembly
- Rowles.LeanCorpus.dll
Represents one hierarchical facet path as ordered components.
public sealed class FacetPath : IEquatable<FacetPath>
- Inheritance
-
FacetPath
- Implements
Remarks
Components is the authoritative representation. The indexed values returned by ToIndexedValues() are an internal-safe, length-prefixed representation of each path prefix.
FacetPath(IReadOnlyList<string>)
Initialises a path from ordered components.
FacetPath(params string[])
Initialises a path from ordered components.
MaximumDepth
Maximum supported hierarchy depth, bounding prefix expansion at index time.
Components
Gets the ordered, immutable path components.
Equals(FacetPath?)
Indicates whether the current object is equal to another object of the same type.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.
ToIndexedValues()
Converts this path to the values that should be indexed for hierarchical faceting. The returned values contain every prefix, including the complete path.
ToString()
Returns a display representation of the path.