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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -