You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by ks...@apache.org on 2002/02/22 23:29:50 UTC
cvs commit: xml-xindice/java/src/org/apache/xindice/core/indexer IndexManager.java
kstaken 02/02/22 14:29:50
Modified: java/src/org/apache/xindice/core/indexer IndexManager.java
Log:
Adding fix for index creation error reported by Kurt Ward.
Revision Changes Path
1.2 +4 -2 xml-xindice/java/src/org/apache/xindice/core/indexer/IndexManager.java
Index: IndexManager.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/core/indexer/IndexManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- IndexManager.java 6 Dec 2001 21:00:12 -0000 1.1
+++ IndexManager.java 22 Feb 2002 22:29:50 -0000 1.2
@@ -56,7 +56,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: IndexManager.java,v 1.1 2001/12/06 21:00:12 bradford Exp $
+ * $Id: IndexManager.java,v 1.2 2002/02/22 22:29:50 kstaken Exp $
*/
import org.apache.xindice.core.*;
@@ -296,8 +296,10 @@
org.apache.xindice.Stopwatch sw = new org.apache.xindice.Stopwatch("Populated Indexes", true);
for ( int i = 0; i < list.length; i++ ) {
try {
- if ( !list[i].indexer.exists() )
+ if ( !list[i].indexer.exists() ) {
list[i].indexer.create();
+ list[i].indexer.open();
+ }
}
catch ( Exception e ) {
org.apache.xindice.Debug.printStackTrace(e);