1

コレクションのマッピングを取得するmongoosastic 3.1.2、mongoose ~4.0.5、mongodb 3.0.3、elasticsearch 1.6を使用していますが、既存のドキュメントはエラスティック検索でインデックスを作成できず、問題もありました

function SyncCollection (){
    var stream = model.synchronize()
        , count = 0;

    stream.on('data', function(err, doc){
        count++;
    });
    stream.on('close', function(){
        console.log('indexed ' + count + ' documents from Collection!');
    });
    stream.on('error', function(err){
        console.log(err);
    });
}

stream.on メソッドが機能していない場所。

前もって感謝します。

4

0 に答える 0