You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ph...@free.fr on 2015/03/13 09:22:20 UTC

response.results

Hello,

could someone please explain how the current Velocity template examples provided with the 5.0.0 distribution retrieve documents from SOLR?

result_list.vm contains the following line

#foreach($doc in $response.results)

but I can't figure out where $response.results is generated.

Many thanks.

Philippe


Re: response.results

Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Hello

response is assigned at
https://github.com/apache/lucene-solr/blob/trunk/solr/contrib/velocity/src/java/org/apache/solr/response/VelocityResponseWriter.java#L224


On Fri, Mar 13, 2015 at 11:22 AM, <ph...@free.fr> wrote:

> Hello,
>
> could someone please explain how the current Velocity template examples
> provided with the 5.0.0 distribution retrieve documents from SOLR?
>
> result_list.vm contains the following line
>
> #foreach($doc in $response.results)
>
> but I can't figure out where $response.results is generated.
>
> Many thanks.
>
> Philippe
>
>


-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mk...@griddynamics.com>