[hibernate-commits] Hibernate SVN: r13994 - search/trunk/doc/reference/en/modules.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Sep 3 23:36:39 EDT 2007


Author: epbernard
Date: 2007-09-03 23:36:39 -0400 (Mon, 03 Sep 2007)
New Revision: 13994

Modified:
   search/trunk/doc/reference/en/modules/batchindex.xml
Log:
documentaton on purge

Modified: search/trunk/doc/reference/en/modules/batchindex.xml
===================================================================
--- search/trunk/doc/reference/en/modules/batchindex.xml	2007-09-04 03:05:10 UTC (rev 13993)
+++ search/trunk/doc/reference/en/modules/batchindex.xml	2007-09-04 03:36:39 UTC (rev 13994)
@@ -94,12 +94,18 @@
 
     <programlisting>FullTextSession fullTextSession = Search.createFullTextSession(session);
 Transaction tx = fullTextSession.beginTransaction();
-<emphasis role="bold">fullTextSession.purge( Customer.class );</emphasis>
+<emphasis role="bold">fullTextSession.purgeAll( Customer.class );</emphasis>
 //optionally optimize the index
 //fullTextSession.getSearchFactory().optimize( Customer.class );
 tx.commit(); //index are written at commit time    </programlisting>
 
     <para>It is recommended to optimize the index after such an
     operation.</para>
+
+    <note>
+      <para>Methods <methodname>index</methodname>,
+      <methodname>purge</methodname> and <methodname>purgeAll</methodname> are
+      available on <classname>FullTextEntityManager</classname> as well</para>
+    </note>
   </section>
 </chapter>
\ No newline at end of file




More information about the hibernate-commits mailing list