calls indexwriter #deletedocuments query and returns the generation that reflects this change . concode_field_sep AtomicLong indexingGen concode_elem_sep IndexWriter writer concode_field_sep long addDocuments concode_elem_sep IndexWriter getIndexWriter concode_elem_sep long addDocument concode_elem_sep long updateDocuments concode_elem_sep long getGeneration concode_elem_sep long deleteAll concode_elem_sep long tryDeleteDocument concode_elem_sep long updateDocument concode_elem_sep long addIndexes concode_elem_sep long addIndexes concode_elem_sep long getAndIncrementGeneration
long function ( Query ... arg0 ) { writer . deleteDocuments ( arg0 ) ; return indexingGen . get ( ) ; }