X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fproduct_doc.vm;fp=zookeeper%2Fsolr%2Fcollection1%2Fconf%2Fvelocity%2Fproduct_doc.vm;h=c878d8c13b188616ee0f30522434fc9b3e6851b1;hb=df39a9c5d2f4247b0682f2c6cf0d64b22edfaadd;hp=0000000000000000000000000000000000000000;hpb=8373b5d73c5a09872b07edb5c23b76a7f07fd055;p=lui-solr.git diff --git a/zookeeper/solr/collection1/conf/velocity/product_doc.vm b/zookeeper/solr/collection1/conf/velocity/product_doc.vm new file mode 100644 index 0000000..c878d8c --- /dev/null +++ b/zookeeper/solr/collection1/conf/velocity/product_doc.vm @@ -0,0 +1,32 @@ +#** + * Render a hit representing a Product + * assumed to have a field called "name" + *# + +
#field('name') #if($params.getBool('mlt', false) == false)More Like This#end
+##do we have a physical store for this product +#set($store = $doc.getFieldValue('store')) +#if($store)
Larger Map
#end +
Id: #field('id')
+
Price: #field('price_c')
+
Features: #field('features')
+
In Stock: #field('inStock')
+
+ #set($mlt = $mltResults.get($docId)) + #set($mltOn = $params.getBool('mlt')) + #if($mltOn == true)
Similar Items
#end + #if ($mltOn && $mlt && $mlt.size() > 0) + + #elseif($mltOn && $mlt.size() == 0) +
No Similar Items Found
+ #end +
+#parse('debug.vm')