sqlite_bm25 library

Provides helper functions for sorting SQLite FTS4 documents.

Constants

bm25FormatString → const String
The format string that should be used with matchinfo() on an FTS4 virtual table.

Functions

bm25(Uint8List matchinfo, {double k1 = 1.2, double b = 0.75, List<double>? weights}) double
Converts matchinfo() data to a relevance score (lower is more relavent).