seperate indexer class and make interface for search