refactor the search index function and create private methods that abstracts some functionalities
refactor the search index function and create private methods that abstracts some functionalities

andela-vnwaiwu/inverted-index,andela-vnwaiwu/inverted-index