fixed / clean ups
[mir.git] / source / mircoders / producer / IndexingProducerNode.java
index 22b3a19..685a2c1 100755 (executable)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  * In addition, as a special exception, The Mir-coders gives permission to link
- * the code of this program with  any library licensed under the Apache Software License, 
- * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library 
- * (or with modified versions of the above that use the same license as the above), 
- * and distribute linked combinations including the two.  You must obey the 
- * GNU General Public License in all respects for all of the code used other than 
- * the above mentioned libraries.  If you modify this file, you may extend this 
- * exception to your version of the file, but you are not obligated to do so.  
+ * the code of this program with  any library licensed under the Apache Software License,
+ * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library
+ * (or with modified versions of the above that use the same license as the above),
+ * and distribute linked combinations including the two.  You must obey the
+ * GNU General Public License in all respects for all of the code used other than
+ * the above mentioned libraries.  If you modify this file, you may extend this
+ * exception to your version of the file, but you are not obligated to do so.
  * If you do not wish to do so, delete this exception statement from your version.
  */
 package mircoders.producer;
@@ -98,7 +98,7 @@ public class IndexingProducerNode implements ProducerNode {
           entity.getClass().getName() + " adapter", null);
       }
 
-      aLogger.info("Indexing " + (String) entity.getValue("id") + " into " +
+      aLogger.info("Indexing " + (String) entity.getFieldValue("id") + " into " +
         index);
 
       // create an index here if one did not already exist
@@ -124,7 +124,7 @@ public class IndexingProducerNode implements ProducerNode {
       //this initialization should go somewhere global like an xml file....
       (new KeywordSearchTerm("id", "", "id", "", "id")).index(theDoc, entity);
 
-      String textValue = entity.getValue("webdb_create");
+      String textValue = entity.getFieldValue("webdb_create");
       Calendar calendar = GregorianCalendar.getInstance();
       int year;
       int month;
@@ -155,11 +155,11 @@ public class IndexingProducerNode implements ProducerNode {
       (new KeywordSearchTerm("webdb_create_formatted", "search_date",
         "webdb_create_formatted", "webdb_create_formatted",
         "webdb_create_formatted")).indexValue(theDoc,formattedDate);
-     
+
 
       (new UnIndexedSearchTerm("", "", "", "where", "where")).indexValue(theDoc,
-        StringUtil.webdbDate2path(entity.getValue("date")) +
-        entity.getValue("id") + ".shtml");
+        StringUtil.webdbDate2path(entity.getFieldValue("date")) +
+        entity.getFieldValue("id") + ".shtml");
 
       (new TextSearchTerm("creator", "search_creator", "creator", "creator",
         "creator")).index(theDoc, entity);
@@ -171,8 +171,8 @@ public class IndexingProducerNode implements ProducerNode {
         "creationDate", "creationDate", "creationDate")).index(theDoc, entity);
 
       (new ContentSearchTerm("content_data", "search_content", "content", "", "")).indexValue(theDoc,
-        entity.getValue("content_data") + " " + entity.getValue("description") +
-        " " + entity.getValue("title"));
+        entity.getFieldValue("content_data") + " " + entity.getFieldValue("description") +
+        " " + entity.getFieldValue("title"));
 
       (new TopicSearchTerm()).index(theDoc, entity);