Search — search as ranking
Search returns ranked hits, each with a score and a text sample. Use it for a search results page:
var hits = db.Query<IEvent>()
.Where(e => e.Status == EventStatus.Published) // filter first
.Search("live electronic music", semanticRatio: 0.7)
.Page(0, 20)
.Execute();
foreach (var hit in hits)
Console.WriteLine($"{hit.Score:0.00} {hit.Node.Title}: {hit.Sample.FormatSample("<b>", "</b>")}");Both take the same optional settings after the text: semanticRatio, minimumVectorSimilarity,
orSearch (true: any term may match, false: all must) and maxWordsEvaluated. Search also takes
maxHitsEvaluated.