code: public void truncate() {
          Log.info("Truncating index");
          try {
              indexWriter.deleteAll();
          } catch (IOException e) {
              Log.error(e, "Error while truncating index");
              throw new RuntimeException(e);
          }
      }
docs: Deletes all the {@link Document}s.