'explainOther' => '', 'hl.fl' => '', ); $solrBase = new eZSolrBase(); $result = $solrBase->rawSolrRequest( '/select', $params, 'php' ); $result['response']['docs'][0]['attr_content_rating_'.$row['cluster_identifier'].'_f'] = $row['total']; $solrIndexationJob = new SolrIndexationJob(null); $solrIndexationJob->setAttribute('data', json_encode($result['response']['docs'][0])); $solrIndexationJob->store(); } $mdb->query( sprintf( 'UPDATE mm_rating_remote SET to_reindex = 0 WHERE remote_id = "%s"', $remoteId ) ); } eZContentObject::clearCache(); $offset += 200; } // Purge varnish cache of listing sort by most rated : $varnishControl = new VarnishControl(); $varnishControl->banMostPopular( $varnishNodeIds ); echo $counter." objects treated\n";