I have set up a Solr index for user profiles on my site with the Search API Solr Search. The profiles are pretty complicated-- several relations, lots of fields, and many theme templates to render them with complex logic.
I am trying to speed up the performance of my search views, and I found this option under Data alterations on the Solr index:
Complete entity view
Adds an additional field containing the whole HTML content of the entity when viewed.
I thought I could use this as a cache by saving the rendered HTML to Solr for the user profiles, and then, in my view, I could just display this one item, the complete entity view, instead of having to configure all my fields and views formatting templates.
So, I did the following:
- At
/admin/config/search/search_api/index/MYSEARCH/fields
, I selected the field for indexing (complete entity view) as fulltext. - At
/admin/config/search/search_api/server/MYINDEX/edit
, I turned on "Retrieve result data from Solr" as noted in this D.O post.
When I do this, I can now select the "Complete entity view" under Fields in the Views UI, but no result (no HTML output) is returned in the display. How can I add the output of the "Complete entity view" in Views?