Hallo...

I have a Problem...

I will use Solitas for solr..
But i have a Problem...
At the moment, Solitas present All fields in the Results, but i musst change
it and present only some, Like id, name, cat and inStock (exampledocuments)

i think that is the code to post all fields..

<div class="result-document">
  #foreach($fieldname in $doc.fieldNames)
     <p>
       <span class="field-name">$fieldname :</span>
       <span>
       #foreach($value in $doc.getFieldValues($fieldname))
         $value
       #end
       </span>
     </p>
  #end
  #if($params.getBool("debugQuery",false))
    <a href="#" onclick='jQuery(this).siblings("pre").toggle(); return
false;'>toggle explain</a>
    <pre 
style="display:none">$response.getExplainMap().get($doc.getFirstValue('id'))</pre>
  #end

</div>

Maby someone can explain me how i can change the code to get some fields
Jörg Agatz

Reply via email to