export default async function buildRegionsIndex( client: Client, indexId: string, regions: Region[] ) { await handleESError( client.indices.delete({ index: indexId, ignore_unavailable: true }) ); await handleESError( client.indices.create({ index: indexId, body: DEFINITION }) ); await bulkIndex(client, indexId, regions, true, "regionSearchId"); }
return client.indices.create(options)
); await handleESError( client.indices.create({ index: indexId, body: {