Section navigation

Public classSealed 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.

Public constructor FacetPath(IReadOnlyList<string>)

Initialises a path from ordered components.

Public constructor FacetPath(params string[])

Initialises a path from ordered components.

Public field MaximumDepth

Maximum supported hierarchy depth, bounding prefix expansion at index time.

Public property Components

Gets the ordered, immutable path components.

Public method Equals(FacetPath?)

Indicates whether the current object is equal to another object of the same type.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.

Public method ToIndexedValues()

Converts this path to the values that should be indexed for hierarchical faceting. The returned values contain every prefix, including the complete path.

Public method ToString()

Returns a display representation of the path.