addDocument method
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));
}
Adds text as a document to the index.
Audited: 2026-06-12 11:26 EDT
void addDocument(String text) {
_docs.add(text);
_tfs.add(textToTf(text));
}