Adds the build_solr_fq Smarty function