Indexer class redesigned with searcher as a method and not as a separated class.
Problem with a null pointer