addDocument method

void addDocument(
  1. String text
)

Adds text as a document to the index. Audited: 2026-06-12 11:26 EDT

Implementation

void addDocument(String text) {
  _docs.add(text);
  _tfs.add(textToTf(text));
}