Configuration cleanup for Solr 5 - mostly cleaning up solrconfig.xml
[lui-solr.git] / zookeeper / solr / collection1 / conf / velocity / hit.vm
1 #**
2  *  Called for each matching document but then
3  *  calls one of product_doc, join_doc or richtext_doc
4  *  depending on which fields the doc has
5  *#
6
7 #set($docId = $doc.getFieldValue('id'))
8
9 <div class="result-document">
10
11   ## Has a "name" field ?
12   #if($doc.getFieldValue('name'))
13     #parse("product_doc.vm")
14
15   ## Has a "compName_s" field ?
16   #elseif($doc.getFieldValue('compName_s'))
17     #parse("join_doc.vm")
18
19   ## Fallback to richtext_doc
20   #else
21     #parse("richtext_doc.vm")
22
23   #end
24
25 </div>