Last change
on this file since 29135 was 29135, checked in by ak19, 10 years ago |
Part of port from lucene3.3.0 to lucene4.7.2. Solr related. conf and lib folders for solr4.7.2.
|
File size:
502 bytes
|
Line | |
---|
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>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.