Struct SearchResult<T>
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.Core.dll
Single hit returned by the BlazOrbit search pipeline.
public readonly struct SearchResult<T>
Type Parameters
TItem type being searched.
Constructors
SearchResult(T, double, SearchMatchType)
Single hit returned by the BlazOrbit search pipeline.
public SearchResult(T Item, double Score, SearchMatchType MatchType)
Parameters
ItemTMatched item.
ScoredoubleRelevance score; higher is better.
MatchTypeSearchMatchTypeHow the item matched the query.
Properties
Item
Matched item.
public T Item { get; init; }
Property Value
- T
MatchType
How the item matched the query.
public SearchMatchType MatchType { get; init; }
Property Value
Score
Relevance score; higher is better.
public double Score { get; init; }
Property Value
- double