Skip to content
Snippets Groups Projects
Commit 4269da9e authored by Lukáš Paukert's avatar Lukáš Paukert
Browse files

Comments are back

parent 1d087141
No related branches found
No related tags found
No related merge requests found
......@@ -32,11 +32,11 @@ vector<pair<int, double>> Computor::compute(Database & database) {
 
double documentWeight = space.getInvertedIndexByKey(term).getDocumentWeightByID(ID);
 
if (documentWeight == EInvertedIndex::IDNotFound)
if (documentWeight == EInvertedIndex::IDNotFound) //inverted index does not contain given ID
continue;
 
if (documentWeight == EInvertedIndex::EndOfIndex) {
availableTerms.erase(term);
availableTerms.erase(term); //remove term from further computation
continue;
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment