Example usage for org.apache.lucene.index RandomIndexWriter deleteAll

List of usage examples for org.apache.lucene.index RandomIndexWriter deleteAll

Introduction

In this page you can find the example usage for org.apache.lucene.index RandomIndexWriter deleteAll.

Prototype

public long deleteAll() throws IOException 

Source Link

Usage

From source file:com.sindicetech.siren.util.SirenTestCase.java

License:Open Source License

protected void deleteAll(final RandomIndexWriter writer) throws IOException {
    writer.deleteAll();
    writer.commit();/*from w ww .j ava 2  s.c om*/
}