Tweaks to MySQL and Solr using custom macros.