class LuceneService {

    public void clearIndex() {
        IndexWriter writer = getWriter();
        try {
            writer.deleteAll();
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        } finally {
            closeWriter(writer);
        }
    }

    public  LuceneService();
      LuceneService(Directory directory);

}