You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2013/08/27 17:26:22 UTC

svn commit: r1517846 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java

Author: jacopoc
Date: Tue Aug 27 15:26:21 2013
New Revision: 1517846

URL: http://svn.apache.org/r1517846
Log:
No functional changes: removed a really old and commented out code block and expanded the wildcard notation for package inclusion for Lucene classes to better document the external classes being used in this class.

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java?rev=1517846&r1=1517845&r2=1517846&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java Tue Aug 27 15:26:21 2013
@@ -26,7 +26,6 @@ import java.util.Map;
 import javolution.util.FastList;
 import javolution.util.FastMap;
 
-import org.apache.lucene.index.*;
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.UtilDateTime;
 import org.ofbiz.base.util.UtilGenerics;
@@ -42,6 +41,11 @@ import org.ofbiz.service.LocalDispatcher
 import org.apache.lucene.analysis.standard.StandardAnalyzer;
 import org.apache.lucene.analysis.Analyzer;
 import org.apache.lucene.document.Document;
+import org.apache.lucene.index.CorruptIndexException;
+import org.apache.lucene.index.DirectoryReader;
+import org.apache.lucene.index.IndexWriter;
+import org.apache.lucene.index.IndexWriterConfig;
+import org.apache.lucene.index.Term;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.FSDirectory;
 import org.apache.lucene.store.LockObtainFailedException;
@@ -182,13 +186,6 @@ public class SearchWorker {
             Integer newIndexCount = goodIndexCount + 1;
             context.put("goodIndexCount", newIndexCount);
         }
-        /*
-            String dataResourceId = content.getString("dataResourceId");
-            if (UtilValidate.isNotEmpty(dataResourceId)) {
-                doc = DataResourceDocument.Document(dataResourceId, delegator, context);
-                writer.addDocument(doc);
-            }
-         */
     }
 
 }