class LuceneService {

    public void removeDocuments(List<Query> queries) {
        IndexWriter writer = getWriter();
        for (Query query : queries) {
            try {
                writer.deleteDocuments(query);
            } catch (Exception e) {
                e.printStackTrace();
                closeWriter(writer);
                throw new RuntimeException(e);
            }
        }
        closeWriter(writer);
    }

    public  LuceneService();
      LuceneService(Directory directory);

}