Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

minor tweaks to update script example

Erik Hatcher138a1d762a23
diff --git a/solr/example/solr/collection1/conf/update-script.js b/solr/example/solr/collection1/conf/update-script.js
index 88db14d3dae..49b07f9b71e 100644
--- a/solr/example/solr/collection1/conf/update-script.js
+++ b/solr/example/solr/collection1/conf/update-script.js
@@ -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]); }
// }
}