code: public synchronized TopDocs search(Query query, int maxQueryResults) throws CorruptIndexException, IOException {
          return indexSearcher.search(query, maxQueryResults);
      }
docs: Searches the index using the given query.
  
  @param query the query used to search the index
  @param maxQueryResults the max number of results to return
  @return the TopDocs found be the query
  @throws CorruptIndexException thrown if the Index is corrupt
  @throws IOException thrown if there is an IOException