This is an automated email from the ASF dual-hosted git repository.

mattmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/oodt.git

commit e878556e917903178384c1e28544e39aa80b15cf
Author: Tom Barber <[email protected]>
AuthorDate: Wed Jul 18 15:29:26 2018 +0200

    uncomment catch
---
 .../org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java   | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git 
a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java 
b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java
index bf57dd2..d8e3af0 100644
--- 
a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java
+++ 
b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java
@@ -1060,11 +1060,6 @@ public class LuceneCatalog implements Catalog {
     private synchronized void addCompleteProductToIndex(CompleteProduct cp)
             throws CatalogException {
         IndexWriter writer = null;
-        /*try {*/
-            /*writer = new IndexWriter(indexFilePath, new StandardAnalyzer(),
-                    createIndex);*/
-            //writer.setCommitLockTimeout(this.commitLockTimeout * 1000);
-            //writer.setWriteLockTimeout(this.writeLockTimeout * 1000);
             IndexWriterConfig config = new IndexWriterConfig(new 
StandardAnalyzer());
 
             config.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);
@@ -1082,11 +1077,8 @@ public class LuceneCatalog implements Catalog {
         try {
             writer.addDocument(doc);
             writer.close();
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
         // TODO: determine a better way to optimize the index
-       /* } catch (Exception e) {
+       } catch (Exception e) {
             LOG.log(Level.WARNING, "Unable to index product: ["
                     + cp.getProduct().getProductName() + "]: Message: "
                     + e.getMessage(), e);
@@ -1101,7 +1093,7 @@ public class LuceneCatalog implements Catalog {
             } catch (Exception e) {
                 System.out.println("failed"+e.getLocalizedMessage());
             }
-        }*/
+        }
 
     }
 

Reply via email to