sub _update_term_score { my ($self, $term, $doc_id, $count) = @_; # term -> search term # doc_id -> document id # count -> number of times term was found in this document. . . . }