Thanks, everyone. This is the problem: $sentence is a NamedList node, with a
name and a "value" (any Java object). I want its value subnode:
#foreach($sentence in $outer)
$sentence = $sentence.value
| >>
| >> Here is the XML from a search result:
| >>
| >>
| >> 0
| >>
| >> A bunch o
As Paul mentioned, printing the class name helps tremendously. The $response
(SolrQueryResponse) can contain all sorts of nested objects of various types,
so it's necessary to know what kind of object it is (generally, but not alway)
to be able to navigate it effectively.
A shortcut, you can a
lucene.472066.n3.nabble.com/Help-with-Velocity-in-SolrItas-tp4012636p4012668.html
Sent from the Solr - User mailing list archive at Nabble.com.
Lance,
this is the kind of fun that happens with Velocity all day long...
In general, when it outputs the variable name, it's the that the variable is
null; this can happen when a method is missing for example
There are actually effective uses of this brain-dead-debugger-oriented-practice!