lib/operations/collection_ops.js
function reIndex(coll, options, callback) {
  // Reindex
  const cmd = { reIndex: coll.s.name };

  // Execute the command
  executeCommand(coll.s.db, cmd, options, (err, result) => {
    if (callback == null) return;
    if (err) return handleCallback(callback, err, null);
    handleCallback(callback, null, result.ok ? true : false);
  });
}
function reIndex(coll, options, callback) {
  // Reindex
  const cmd = { reIndex: coll.s.name };

  // Execute the command
  executeCommand(coll.s.db, cmd, options, (err, result) => {
    if (callback == null) return;
    if (err) return handleCallback(callback, err, null);
    handleCallback(callback, null, result.ok ? true : false);
  });
}
function reIndex ( coll , options , callback ) { // Reindex const cmd = { reIndex : coll . s . name } ; // Execute the command executeCommand ( coll . s . db , cmd , options , ( err , result ) => { if ( callback == null ) return ; if ( err ) return handleCallback ( callback , err , null ) ; handleCallback ( callback , null , result . ok ? true : false ) ; } ) ; }
Reindex all indexes on the collection.

@method
@param {Collection} a Collection instance.
@param {Object} [options] Optional settings. See Collection.prototype.reIndex for a list of options.
@param {Collection~resultCallback} [callback] The command result callback
Reindex all indexes on the collection .