code: function buildIndex(indexName, db) {
    return db.query(indexName, {
      limit: 0
    }).catch(function(err) {
      console.log(`index error: ${JSON.stringify(err, null, 2)}`);
    });
  }
docs: /* global req /* global compareStrings /* global getCompareDate