s = new FullTextSessionImpl( openSession() );
tx = s.beginTransaction();
QueryParser parser = new QueryParser( "id", new StopAnalyzer() );
int result = s.createFullTextQuery( parser.parse( "body:wrote" ) ).getResultSize();
assertEquals( 2000, result );
s.createQuery( "delete " + Email.class.getName() ).executeUpdate();
tx.commit();
s.close();
}
protected void configure(org.hibernate.cfg.Configuration cfg) {