public synchronized TopDocs search ( Query query , int maxQueryResults ) throws CorruptIndexException , IOException { return indexSearcher . search ( query , maxQueryResults ) ; }
Searches the index using the given query .