Read custom fields from solr rather than the database. Fixes #231