# Update cloudsearch domain for releases corpus

## Overview

Two new columns have been indexed in prod-etl-releases corpus. To populate these new indexes on cloudsearch domain, requires backfill for all releases. This script will update art_relations.releases.last_updated, to queue it up for Maxwell to populate project_name and project_code in cloudsearch.

## Setup

```bash
python3 -m venv env
```

```bash
source env/bin/activate
```

```bash
pip install -r requirements.txt
```

```bash
cp .env.shadow .env
```

## Run

```bash
python product/run.py (Argument 1 : OFFSET for the records to be updated in batches.) (Argument 2 : LIMIT for the number of records to be updated.)

eg : python product/run.py 0 5000 (Will update 5000 records)
eg : python product/run.py 10000 (Will update 10000 records)
eg : python product/run.py 5000 10000 (Will update 10000 records, with offset 5000)
eg : python product/run.py (Will update 500 records given as a default limit)
eg : python product/run.py incorrect (Will only accept numeric arguments and give error message)
```
