addDocument method
Adds text as a document to the index.
Implementation
void addDocument(String text) {
_docs.add(text);
_tfs.add(textToTf(text));
}
Adds text as a document to the index.
void addDocument(String text) {
_docs.add(text);
_tfs.add(textToTf(text));
}