SearchIndexUtils class
In-memory document index: add docs, search by query (TF scoring).
Constructors
Properties
Methods
-
addDocument(
String text) → void -
Adds
textas a document to the index. -
getDocument(
int i) → String -
Returns the document at
i. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String query, {int limit = 10}) → List< (int, double)> -
Returns up to
limithits as (documentIndex, score), sorted by score descending. Each record is (index, score) with index the document index and score the TF similarity. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited