Extract explicit SolrDocument class references to make the model class configurable

Fixes #837