code: public void search(String query) {
          final Query newQuery = searcher.getQuery().setQuery(query);
          searcher.setQuery(newQuery).search();
      }
docs: Triggers a new search with the given text.
  
  @param query the text to search for.