# Update cloudsearch domain for user corpus

## Overview

This will populate data into cloudsearch prod-etl-user corpus. This script will update art_relations.contact.instrument to queue it up for Maxwell to populate user details 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 contact/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 contact/run.py 0 5000 (Will update 5000 records)
eg : python contact/run.py 10000 (Will update 10000 records)
eg : python contact/run.py 5000 10000 (Will update 10000 records, with offset 5000)
eg : python contact/run.py (Will update 500 records given as a default limit)
eg : python contact/run.py incorrect (Will only accept numeric arguments and give error message)
```
