Zookeeper setup
[lui-solr.git] / zookeeper / solr / collection1 / conf / velocity / hit_plain.vm
diff --git a/zookeeper/solr/collection1/conf/velocity/hit_plain.vm b/zookeeper/solr/collection1/conf/velocity/hit_plain.vm
new file mode 100644 (file)
index 0000000..193439b
--- /dev/null
@@ -0,0 +1,25 @@
+#**
+ *  An extremely plain / debug version of hit.vm
+ *#
+
+<table>
+  ## For each field
+  #foreach( $fieldName in $doc.fieldNames )
+    ## For each value
+    #foreach( $value in $doc.getFieldValues($fieldName) )
+      <tr>
+        ## Field Name
+        <th align="right" valign="top">
+          #if( $foreach.count == 1 )
+            $fieldName:
+          #end
+        </th>
+        ## Field Value(s)
+        <td align="left" valign="top">
+          $esc.html($value) <br/>
+        </td>
+      </tr>
+    #end     ## end for each value
+  #end       ## end for each field
+</table>
+<hr/>