#field('title')#if($params.getBool('mlt', false) == false)More Like This#end
Content: #field('content')
Keywords: #field('keywords')
Author: #field('author')
#set($mlt = $mltResults.get($docId)) #set($mltOn = $params.getBool('mlt')) #if($mltOn == true)
Similar Items
#end #if ($mltOn && $mlt && $mlt.size() > 0)

#foreach($mltHit in $mlt) #set($mltId = $mltHit.getFieldValue('id'))
- $mltId
  Title: $mltHit.getFieldValue('title')
  Content: $mltHit.getFieldValue('content')
#end

#elseif($mltOn && $mlt.size() == 0)
No Similar Items Found
#end
#if($params.getBool("debugQuery",false)) toggle explain

    $response.getExplainMap().get($doc.getFirstValue('id'))

toggle all fields #foreach($fieldname in $doc.fieldNames)
$fieldname : #foreach($value in $doc.getFieldValues($fieldname)) $value #end #end #end