module

Xerp::Query::ScopeScorer

Constants

ALPHA = 0.5

Scoring parameters (tunable)

LAMBDA = 0.5

Class methods

score_scopes(db : DB::Database, expanded_tokens : Hash(String, Array(Expansion::ExpandedToken)), opts : QueryOptions) : Array(ScopeScore)

Scores scopes based on expanded query tokens using DESIGN02-00 algorithm.

Source

Nested types