class

DataDungeon::Matcher

Inherits Reference < Object

Finds best matches; MatchIndex (data_dungeon/matches) is the one implementation. Declared here so the HTTP API can offer best matches without requiring USearch.

Instance methods

best_matches(asset_type : String, picks : Hash(String, String), *, require required_traits : Array(String) = [] of String, weights : Hash(String, Float64) = {} of String => Float64, limit : Int32 = 10) : Array(BestMatch)
Source
close
Source
similar(id : Int64, *, require required_traits : Array(String) = [] of String, weights : Hash(String, Float64) = {} of String => Float64, limit : Int32 = 10) : Array(BestMatch)
Source