code: public synchronized TopDocs search(String searchString, int maxQueryResults) throws ParseException, IndexException, IOException {
          final Query query = parseQuery(searchString);
          return search(query, maxQueryResults);
      }
docs: Searches the index using the given search string.
  
  @param searchString the query text
  @param maxQueryResults the maximum number of documents to return
  @return the TopDocs found by the search
  @throws ParseException thrown when the searchString is invalid
  @throws IndexException thrown when there is an internal error resetting
  the search analyzer
  @throws IOException is thrown if there is an issue with the underlying
  Index