Test param for annotator to populate classes from search index
Refactor search methods to search helper so they are accessible elsewhere