Attempt at fixing: http://jira.xwiki.org/browse/CURRIKI-6037 (JSON records delivered from SOLR are wrong).