use of com.yahoo.prelude.templates.SearchRendererAdaptor in project vespa by vespa-engine.
the class RendererRegistry method addTemplateSet.
@SuppressWarnings({ "deprecation", "unchecked" })
private ComponentId addTemplateSet(UserTemplate<?> templateSet) {
Renderer renderer = new SearchRendererAdaptor(templateSet);
ComponentId rendererId = new ComponentId(templateSet.getName());
renderer.initId(rendererId);
register(rendererId, renderer);
return rendererId;
}
use of com.yahoo.prelude.templates.SearchRendererAdaptor in project vespa by vespa-engine.
the class TilingTestCase method callSearchAndSetRenderer.
private Result callSearchAndSetRenderer(Chain<Searcher> chain, Query query) {
Execution.Context context = new Execution.Context(null, null, null, new RendererRegistry(MoreExecutors.directExecutor()), new SimpleLinguistics());
Result result = new Execution(chain, context).search(query);
result.getTemplating().setRenderer(new SearchRendererAdaptor(new TiledTemplateSet()));
return result;
}
Aggregations