Ok. And it looks like you could do that from the document extension framework, so I guess that's reasonable. 

I do wonder if we should limit the output to e.g. the fields configured in the index/show config, but I'm happy to wait on that (because it might require introducing e.g. draper or some other presentation layer..)