SearchIndexUtils class

In-memory document index: add docs, search by query (TF scoring).

Constructors

SearchIndexUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Number of documents in the index.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument(String text) → void
Adds text as 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
Returns up to limit hits 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