php - Solr - getting error with full-import by cUrl -
i have big db in mysql , trying import data in new core. wrote script call data-import command curl
$url = 'http://localhost:8080/solr/products/dataimport'; $fields = array( 'debug' => false, 'commit' => true, 'command' => 'full-import', 'optimize' => false, 'indent' => true, 'rows' => $count, 'start' => $start, 'verbose' => false, 'clean' => $cleansolr, // true @ first time , false after 'wt' => 'json', ); $url = 'http://localhost:8080/solr/products/dataimport?' . http_build_query($fields); error_log($url); $ch = curl_init(); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_url, $url); $result = curl_exec($ch); but request clean data , import in empty core @ both times, when clean = true , clean = false
can me issue ?
Comments
Post a Comment