Commit 56928f94 by Phạm Văn Đoan

cập nhật

parent 7c3be945
......@@ -26,6 +26,8 @@ class EsController extends Controller
public function sync()
{
die();
//$client = new Client(['http://localhost:9200/']);
//$listen = CrawlerListenHistory::take(1000)->skip(0)->get();
......@@ -36,7 +38,17 @@ class EsController extends Controller
//$listen = CrawlerListenHistory::take(10000)->skip(10000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(20000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(30000)->get()->toArray();
$listen = CrawlerListenHistory::take(10000)->skip(40000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(40000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(50000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(60000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(70000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(80000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(90000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(100000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(110000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(120000)->get()->toArray();
//$listen = CrawlerListenHistory::take(10000)->skip(130000)->get()->toArray();
$listen = CrawlerListenHistory::take(10000)->skip(140000)->get()->toArray();
foreach ($listen as $val) {
$uri = 'http://localhost:9200/vmusicchart/_doc/' . $val['id'];
$params = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment