add index manager and refactor index searcher