You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by eh...@apache.org on 2012/07/28 19:42:49 UTC

svn commit: r1366716 - /lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js

Author: ehatcher
Date: Sat Jul 28 17:42:49 2012
New Revision: 1366716

URL: http://svn.apache.org/viewvc?rev=1366716&view=rev
Log:
minor tweaks to update script example

Modified:
    lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js

Modified: lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js?rev=1366716&r1=1366715&r2=1366716&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js (original)
+++ lucene/dev/trunk/solr/example/solr/collection1/conf/update-script.js Sat Jul 28 17:42:49 2012
@@ -10,7 +10,7 @@
 function processAdd(cmd) {
 
   doc = cmd.solrDoc;  // org.apache.solr.common.SolrInputDocument
-  id =doc.getFieldValue("id");
+  id = doc.getFieldValue("id");
   logger.info("update-script#processAdd: id=" + id);
 
 // Set a field value:
@@ -27,7 +27,7 @@ function processAdd(cmd) {
 //  field_names = doc.getFieldNames().toArray();
 //  for(i=0; i < field_names.length; i++) {
 //    field_name = field_names[i];
-//    if (/attr_.*/.test(field_name)) { doc.addField("field_name_ss", field_names[i]); }
+//    if (/attr_.*/.test(field_name)) { doc.addField("attribute_ss", field_names[i]); }
 //  }
 
 }