diff --git a/src/main/java/cool/solr/response/ThymeleafResponseWriter.java b/src/main/java/cool/solr/response/ThymeleafResponseWriter.java index afd8ef9..8b7197a 100644 --- a/src/main/java/cool/solr/response/ThymeleafResponseWriter.java +++ b/src/main/java/cool/solr/response/ThymeleafResponseWriter.java @@ -108,14 +108,14 @@ public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse res } } + // let subclasses add context info (if needed) + preProcess(context, request, response); + SolrResponse rsp = new QueryResponse(); NamedList parsedResponse = BinaryResponseWriter.getParsedResponse(request, response); rsp.setResponse(parsedResponse); context.setVariable("response", rsp); - // let subclasses add context info (if needed) - preProcess(context, request, response); - getEngine().process(templateName, context, writer); }