Move to solr 4 plus corrections to SparqlQueryExecutorTest with newlines and white space characters
This commit is contained in:
parent
b642f30391
commit
120be1e6b8
122 changed files with 17422 additions and 5288 deletions
25
solr/homeDirectoryTemplate/conf/velocity/hit.vm
Normal file
25
solr/homeDirectoryTemplate/conf/velocity/hit.vm
Normal file
|
@ -0,0 +1,25 @@
|
|||
#**
|
||||
* Called for each matching document but then
|
||||
* calls one of product_doc, join_doc or richtext_doc
|
||||
* depending on which fields the doc has
|
||||
*#
|
||||
|
||||
#set($docId = $doc.getFieldValue('id'))
|
||||
|
||||
<div class="result-document">
|
||||
|
||||
## Has a "name" field ?
|
||||
#if($doc.getFieldValue('name'))
|
||||
#parse("product_doc.vm")
|
||||
|
||||
## Has a "compName_s" field ?
|
||||
#elseif($doc.getFieldValue('compName_s'))
|
||||
#parse("join_doc.vm")
|
||||
|
||||
## Fallback to richtext_doc
|
||||
#else
|
||||
#parse("richtext_doc.vm")
|
||||
|
||||
#end
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue